Home
last modified time | relevance | path

Searched refs:ipsec (Results 1 – 25 of 25) sorted by relevance

/Linux-v4.19/drivers/net/netdevsim/
Dipsec.c17 struct nsim_ipsec *ipsec = &ns->ipsec; in nsim_dbg_netdev_ops_read() local
26 bufsize = (ipsec->count * 4 * 60) + 60; in nsim_dbg_netdev_ops_read()
34 ipsec->count, ipsec->tx); in nsim_dbg_netdev_ops_read()
37 struct nsim_sa *sap = &ipsec->sa[i]; in nsim_dbg_netdev_ops_read()
68 static int nsim_ipsec_find_empty_idx(struct nsim_ipsec *ipsec) in nsim_ipsec_find_empty_idx() argument
72 if (ipsec->count == NSIM_IPSEC_MAX_SA_COUNT) in nsim_ipsec_find_empty_idx()
77 if (!ipsec->sa[i].used) in nsim_ipsec_find_empty_idx()
130 struct nsim_ipsec *ipsec; in nsim_ipsec_add_sa() local
139 ipsec = &ns->ipsec; in nsim_ipsec_add_sa()
153 ret = nsim_ipsec_find_empty_idx(ipsec); in nsim_ipsec_add_sa()
[all …]
DMakefile18 netdevsim-objs += ipsec.o
Dnetdevsim.h103 struct nsim_ipsec ipsec; member
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c116 struct ixgbe_ipsec *ipsec = adapter->ipsec; in ixgbe_ipsec_clear_hw_tables() local
136 ipsec->num_rx_sa = 0; in ixgbe_ipsec_clear_hw_tables()
137 ipsec->num_tx_sa = 0; in ixgbe_ipsec_clear_hw_tables()
296 struct ixgbe_ipsec *ipsec = adapter->ipsec; in ixgbe_ipsec_restore() local
310 struct rx_ip_sa *ipsa = &ipsec->ip_tbl[i]; in ixgbe_ipsec_restore()
318 struct rx_sa *rsa = &ipsec->rx_tbl[i]; in ixgbe_ipsec_restore()
319 struct tx_sa *tsa = &ipsec->tx_tbl[i]; in ixgbe_ipsec_restore()
338 static int ixgbe_ipsec_find_empty_idx(struct ixgbe_ipsec *ipsec, bool rxtable) in ixgbe_ipsec_find_empty_idx() argument
343 if (ipsec->num_rx_sa == IXGBE_IPSEC_MAX_SA_COUNT) in ixgbe_ipsec_find_empty_idx()
348 if (!ipsec->rx_tbl[i].used) in ixgbe_ipsec_find_empty_idx()
[all …]
Dixgbe.h764 struct ixgbe_ipsec *ipsec; member
Dixgbe_main.c10626 if (adapter->ipsec) in ixgbe_probe()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c60 struct xfrm_state *mlx5e_ipsec_sadb_rx_lookup(struct mlx5e_ipsec *ipsec, in mlx5e_ipsec_sadb_rx_lookup() argument
67 hash_for_each_possible_rcu(ipsec->sadb_rx, sa_entry, hlist, handle) in mlx5e_ipsec_sadb_rx_lookup()
80 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_ipsec_sadb_rx_add() local
84 ret = ida_simple_get(&ipsec->halloc, 1, 0, GFP_KERNEL); in mlx5e_ipsec_sadb_rx_add()
88 spin_lock_irqsave(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_add()
90 hash_add_rcu(ipsec->sadb_rx, &sa_entry->hlist, sa_entry->handle); in mlx5e_ipsec_sadb_rx_add()
91 spin_unlock_irqrestore(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_add()
98 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_ipsec_sadb_rx_del() local
101 spin_lock_irqsave(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_del()
103 spin_unlock_irqrestore(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_del()
[all …]
Dipsec_stats.c80 if (!priv->ipsec) in mlx5e_ipsec_get_count()
90 if (!priv->ipsec) in mlx5e_ipsec_get_strings()
108 if (!priv->ipsec) in mlx5e_ipsec_update_stats()
111 ret = mlx5_accel_ipsec_counters_read(priv->mdev, (u64 *)&priv->ipsec->stats, in mlx5e_ipsec_update_stats()
114 memset(&priv->ipsec->stats, 0, sizeof(priv->ipsec->stats)); in mlx5e_ipsec_update_stats()
121 if (!priv->ipsec) in mlx5e_ipsec_get_stats()
125 data[idx++] = MLX5E_READ_CTR64_CPU(&priv->ipsec->stats, in mlx5e_ipsec_get_stats()
129 data[idx++] = MLX5E_READ_CTR_ATOMIC64(&priv->ipsec->sw_stats, in mlx5e_ipsec_get_stats()
Dipsec_rxtx.c262 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_bundle); in mlx5e_ipsec_handle_tx_skb()
268 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_no_state); in mlx5e_ipsec_handle_tx_skb()
275 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_not_ip); in mlx5e_ipsec_handle_tx_skb()
281 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_trailer); in mlx5e_ipsec_handle_tx_skb()
286 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_metadata); in mlx5e_ipsec_handle_tx_skb()
312 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_sp_alloc); in mlx5e_ipsec_build_sp()
317 xs = mlx5e_ipsec_sadb_rx_lookup(priv->ipsec, sa_handle); in mlx5e_ipsec_build_sp()
319 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_sadb_miss); in mlx5e_ipsec_build_sp()
331 if (likely(priv->ipsec->no_trailer)) { in mlx5e_ipsec_build_sp()
343 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_syndrome); in mlx5e_ipsec_build_sp()
Dipsec.h100 struct mlx5e_ipsec *ipsec; member
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dipsec.c184 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv()
185 context = list_first_entry_or_null(&fdev->ipsec->pending_cmds, in mlx5_fpga_ipsec_recv()
190 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv()
218 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_cmd_exec()
236 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_cmd_exec()
237 res = mlx5_fpga_sbu_conn_sendmsg(fdev->ipsec->conn, &context->buf); in mlx5_fpga_ipsec_cmd_exec()
239 list_add_tail(&context->list, &fdev->ipsec->pending_cmds); in mlx5_fpga_ipsec_cmd_exec()
240 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_cmd_exec()
291 if (is_v2_sadb_supported(fdev->ipsec)) in mlx5_fpga_ipsec_update_hw_sa()
330 if (!fdev->ipsec) in mlx5_fpga_ipsec_device_caps()
[all …]
Dcore.h55 struct mlx5_fpga_ipsec *ipsec; member
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
DMakefile51 mlx5_core-$(CONFIG_MLX5_ACCEL) += accel/ipsec.o accel/tls.o
54 fpga/ipsec.o fpga/tls.o
56 mlx5_core-$(CONFIG_MLX5_EN_IPSEC) += en_accel/ipsec.o en_accel/ipsec_rxtx.o \
Den.h698 struct mlx5e_ipsec *ipsec; member
Den_main.c585 if (c->priv->ipsec) in mlx5e_alloc_rq()
/Linux-v4.19/Documentation/devicetree/bindings/crypto/
Dpicochip-spacc.txt7 - compatible : "picochip,spacc-ipsec" for the IPSEC offload engine
16 compatible = "picochip,spacc-ipsec";
/Linux-v4.19/Documentation/devicetree/bindings/rng/
Dbrcm,bcm2835.txt15 - clock-names : "ipsec" as a clock name
39 clock-names = "ipsec";
/Linux-v4.19/arch/arm/boot/dts/
Dpicoxcell-pc3x2.dtsi98 ipsec: spacc@100000 { label
99 compatible = "picochip,spacc-ipsec";
Dpicoxcell-pc3x3.dtsi197 ipsec: spacc@100000 { label
198 compatible = "picochip,spacc-ipsec";
/Linux-v4.19/Documentation/networking/
Dxfrm_device.txt47 The NIC driver offering ipsec offload will need to implement these
D00-INDEX113 ipsec.txt
Dpktgen.txt353 spi (ipsec)
/Linux-v4.19/Documentation/security/
DSELinux-sctp.rst156 7) IPSEC is not supported as RFC 3554 - sctp/ipsec support has not been
/Linux-v4.19/tools/testing/selftests/net/
Drtnetlink.sh634 sysfsf=$sysfsd/ipsec
/Linux-v4.19/
DMAINTAINERS9356 F: drivers/net/ethernet/mellanox/mlx5/core/ipsec*
10136 T: git git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec.git
10137 T: git git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next.git