/Linux-v5.4/drivers/net/ethernet/intel/ixgbevf/ |
D | ipsec.c | 103 struct ixgbevf_ipsec *ipsec = adapter->ipsec; in ixgbevf_ipsec_restore() local 112 struct rx_sa *r = &ipsec->rx_tbl[i]; in ixgbevf_ipsec_restore() 113 struct tx_sa *t = &ipsec->tx_tbl[i]; in ixgbevf_ipsec_restore() 140 int ixgbevf_ipsec_find_empty_idx(struct ixgbevf_ipsec *ipsec, bool rxtable) in ixgbevf_ipsec_find_empty_idx() argument 145 if (ipsec->num_rx_sa == IXGBE_IPSEC_MAX_SA_COUNT) in ixgbevf_ipsec_find_empty_idx() 150 if (!ipsec->rx_tbl[i].used) in ixgbevf_ipsec_find_empty_idx() 154 if (ipsec->num_tx_sa == IXGBE_IPSEC_MAX_SA_COUNT) in ixgbevf_ipsec_find_empty_idx() 159 if (!ipsec->tx_tbl[i].used) in ixgbevf_ipsec_find_empty_idx() 178 struct xfrm_state *ixgbevf_ipsec_find_rx_state(struct ixgbevf_ipsec *ipsec, in ixgbevf_ipsec_find_rx_state() argument 186 hash_for_each_possible_rcu(ipsec->rx_sa_list, rsa, hlist, in ixgbevf_ipsec_find_rx_state() [all …]
|
D | Makefile | 13 ixgbevf-$(CONFIG_IXGBEVF_IPSEC) += ipsec.o
|
D | ixgbevf.h | 393 struct ixgbevf_ipsec *ipsec; member
|
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ipsec.c | 305 struct ixgbe_ipsec *ipsec = adapter->ipsec; in ixgbe_ipsec_restore() local 319 struct rx_sa *r = &ipsec->rx_tbl[i]; in ixgbe_ipsec_restore() 320 struct tx_sa *t = &ipsec->tx_tbl[i]; in ixgbe_ipsec_restore() 341 struct rx_ip_sa *ipsa = &ipsec->ip_tbl[i]; in ixgbe_ipsec_restore() 355 static int ixgbe_ipsec_find_empty_idx(struct ixgbe_ipsec *ipsec, bool rxtable) in ixgbe_ipsec_find_empty_idx() argument 360 if (ipsec->num_rx_sa == IXGBE_IPSEC_MAX_SA_COUNT) in ixgbe_ipsec_find_empty_idx() 365 if (!ipsec->rx_tbl[i].used) in ixgbe_ipsec_find_empty_idx() 369 if (ipsec->num_tx_sa == IXGBE_IPSEC_MAX_SA_COUNT) in ixgbe_ipsec_find_empty_idx() 374 if (!ipsec->tx_tbl[i].used) in ixgbe_ipsec_find_empty_idx() 392 static struct xfrm_state *ixgbe_ipsec_find_rx_state(struct ixgbe_ipsec *ipsec, in ixgbe_ipsec_find_rx_state() argument [all …]
|
D | ixgbe.h | 774 struct ixgbe_ipsec *ipsec; member
|
/Linux-v5.4/drivers/net/netdevsim/ |
D | ipsec.c | 17 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 …]
|
D | Makefile | 14 netdevsim-objs += ipsec.o
|
D | netdevsim.h | 74 struct nsim_ipsec ipsec; member
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec.c | 60 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 …]
|
D | ipsec_stats.c | 80 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()
|
D | ipsec_rxtx.c | 252 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_bundle); in mlx5e_ipsec_handle_tx_skb() 258 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_no_state); in mlx5e_ipsec_handle_tx_skb() 265 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_not_ip); in mlx5e_ipsec_handle_tx_skb() 271 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_trailer); in mlx5e_ipsec_handle_tx_skb() 276 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_metadata); in mlx5e_ipsec_handle_tx_skb() 303 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_sp_alloc); in mlx5e_ipsec_build_sp() 308 xs = mlx5e_ipsec_sadb_rx_lookup(priv->ipsec, sa_handle); in mlx5e_ipsec_build_sp() 310 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_sadb_miss); in mlx5e_ipsec_build_sp() 323 if (likely(priv->ipsec->no_trailer)) { in mlx5e_ipsec_build_sp() 335 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_syndrome); in mlx5e_ipsec_build_sp()
|
D | ipsec.h | 100 struct mlx5e_ipsec *ipsec; member
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | ipsec.c | 190 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv() 191 context = list_first_entry_or_null(&fdev->ipsec->pending_cmds, in mlx5_fpga_ipsec_recv() 196 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv() 224 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_cmd_exec() 242 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_cmd_exec() 243 res = mlx5_fpga_sbu_conn_sendmsg(fdev->ipsec->conn, &context->buf); in mlx5_fpga_ipsec_cmd_exec() 245 list_add_tail(&context->list, &fdev->ipsec->pending_cmds); in mlx5_fpga_ipsec_cmd_exec() 246 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_cmd_exec() 297 if (is_v2_sadb_supported(fdev->ipsec)) in mlx5_fpga_ipsec_update_hw_sa() 336 if (!fdev->ipsec) in mlx5_fpga_ipsec_device_caps() [all …]
|
D | core.h | 61 struct mlx5_fpga_ipsec *ipsec; member
|
/Linux-v5.4/Documentation/devicetree/bindings/crypto/ |
D | picochip-spacc.txt | 7 - compatible : "picochip,spacc-ipsec" for the IPSEC offload engine 16 compatible = "picochip,spacc-ipsec";
|
/Linux-v5.4/Documentation/devicetree/bindings/rng/ |
D | brcm,bcm2835.txt | 15 - clock-names : "ipsec" as a clock name 39 clock-names = "ipsec";
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | Makefile | 59 mlx5_core-$(CONFIG_MLX5_FPGA_IPSEC) += fpga/ipsec.o 61 mlx5_core-$(CONFIG_MLX5_ACCEL) += lib/crypto.o accel/tls.o accel/ipsec.o 65 mlx5_core-$(CONFIG_MLX5_EN_IPSEC) += en_accel/ipsec.o en_accel/ipsec_rxtx.o \
|
D | en.h | 868 struct mlx5e_ipsec *ipsec; member
|
/Linux-v5.4/arch/arm/boot/dts/ |
D | picoxcell-pc3x2.dtsi | 89 ipsec: spacc@100000 { label 90 compatible = "picochip,spacc-ipsec";
|
D | picoxcell-pc3x3.dtsi | 188 ipsec: spacc@100000 { label 189 compatible = "picochip,spacc-ipsec";
|
/Linux-v5.4/tools/testing/selftests/net/ |
D | xfrm_policy.sh | 361 ip netns exec ns3 iptables -p icmp -A FORWARD -m policy --dir out --pol ipsec 362 ip netns exec ns4 iptables -p icmp -A FORWARD -m policy --dir out --pol ipsec
|
D | rtnetlink.sh | 739 sysfsf=$sysfsd/ipsec
|
/Linux-v5.4/Documentation/networking/ |
D | xfrm_device.txt | 47 The NIC driver offering ipsec offload will need to implement these
|
D | pktgen.txt | 353 spi (ipsec)
|
/Linux-v5.4/Documentation/security/ |
D | SCTP.rst | 341 7) IPSEC is not supported as RFC 3554 - sctp/ipsec support has not been
|