/kernel/linux/linux-5.10/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 | 395 struct ixgbevf_ipsec *ipsec; member
|
/kernel/linux/linux-5.10/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 | 84 struct nsim_ipsec ipsec; member
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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() 81 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_ipsec_sadb_rx_add() local 86 hash_for_each_possible_rcu(ipsec->sadb_rx, _sa_entry, hlist, handle) in mlx5e_ipsec_sadb_rx_add() 93 spin_lock_irqsave(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_add() 95 hash_add_rcu(ipsec->sadb_rx, &sa_entry->hlist, sa_entry->handle); in mlx5e_ipsec_sadb_rx_add() 96 spin_unlock_irqrestore(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_add() 103 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_ipsec_sadb_rx_del() local 106 spin_lock_irqsave(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_del() 108 spin_unlock_irqrestore(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_del() [all …]
|
D | ipsec_stats.c | 79 return priv->ipsec ? NUM_IPSEC_SW_COUNTERS : 0; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 88 if (priv->ipsec) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS() 99 if (priv->ipsec) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS() 101 data[idx++] = MLX5E_READ_CTR_ATOMIC64(&priv->ipsec->sw_stats, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS() 108 return (priv->ipsec && mlx5_fpga_ipsec_device_caps(priv->mdev)) ? NUM_IPSEC_HW_COUNTERS : 0; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 115 if (priv->ipsec) in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() 116 ret = mlx5_accel_ipsec_counters_read(priv->mdev, (u64 *)&priv->ipsec->stats, in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() 119 memset(&priv->ipsec->stats, 0, sizeof(priv->ipsec->stats)); in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() 126 if (priv->ipsec && mlx5_fpga_ipsec_device_caps(priv->mdev)) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS() 138 if (priv->ipsec && mlx5_fpga_ipsec_device_caps(priv->mdev)) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS() [all …]
|
D | ipsec_fs.c | 247 accel_esp = priv->ipsec->rx_fs; in rx_destroy() 265 accel_esp = priv->ipsec->rx_fs; in rx_create() 288 accel_esp = priv->ipsec->rx_fs; in rx_ft_get() 316 accel_esp = priv->ipsec->rx_fs; in rx_ft_put() 336 struct mlx5e_ipsec *ipsec = priv->ipsec; in tx_create() local 354 ipsec->tx_fs->ft = ft; in tx_create() 360 struct mlx5e_ipsec *ipsec = priv->ipsec; in tx_destroy() local 362 if (IS_ERR_OR_NULL(ipsec->tx_fs->ft)) in tx_destroy() 365 mlx5_destroy_flow_table(ipsec->tx_fs->ft); in tx_destroy() 366 ipsec->tx_fs->ft = NULL; in tx_destroy() [all …]
|
D | en_accel.h | 113 struct mlx5e_accel_tx_ipsec_state ipsec; member 135 if (unlikely(!mlx5e_ipsec_handle_tx_skb(dev, skb, &state->ipsec))) in mlx5e_accel_tx_begin() 146 return mlx5e_ipsec_is_tx_flow(&state->ipsec); in mlx5e_accel_tx_is_ipsec_flow() 157 return mlx5e_ipsec_tx_ids_len(&state->ipsec); in mlx5e_accel_tx_ids_len() 194 state->ipsec.xo && state->ipsec.tailen) in mlx5e_accel_tx_finish() 195 mlx5e_ipsec_handle_tx_wqe(wqe, &state->ipsec, inlseg); in mlx5e_accel_tx_finish()
|
D | ipsec_rxtx.c | 327 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_bundle); in mlx5e_ipsec_handle_tx_skb() 333 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_no_state); in mlx5e_ipsec_handle_tx_skb() 340 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_not_ip); in mlx5e_ipsec_handle_tx_skb() 346 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_trailer); in mlx5e_ipsec_handle_tx_skb() 353 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_metadata); in mlx5e_ipsec_handle_tx_skb() 384 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_sp_alloc); in mlx5e_ipsec_build_sp() 389 xs = mlx5e_ipsec_sadb_rx_lookup(priv->ipsec, sa_handle); in mlx5e_ipsec_build_sp() 391 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_sadb_miss); in mlx5e_ipsec_build_sp() 404 if (likely(priv->ipsec->no_trailer)) { in mlx5e_ipsec_build_sp() 416 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_syndrome); in mlx5e_ipsec_build_sp() [all …]
|
D | ipsec.h | 110 struct mlx5e_ipsec *ipsec; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | ipsec.c | 193 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv() 194 context = list_first_entry_or_null(&fdev->ipsec->pending_cmds, in mlx5_fpga_ipsec_recv() 199 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv() 227 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_cmd_exec() 245 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_cmd_exec() 246 res = mlx5_fpga_sbu_conn_sendmsg(fdev->ipsec->conn, &context->buf); in mlx5_fpga_ipsec_cmd_exec() 248 list_add_tail(&context->list, &fdev->ipsec->pending_cmds); in mlx5_fpga_ipsec_cmd_exec() 249 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_cmd_exec() 300 if (is_v2_sadb_supported(fdev->ipsec)) in mlx5_fpga_ipsec_update_hw_sa() 339 if (!fdev->ipsec) in mlx5_fpga_ipsec_device_caps() [all …]
|
D | core.h | 61 struct mlx5_fpga_ipsec *ipsec; member
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/crypto/ |
D | picochip-spacc.txt | 7 - compatible : "picochip,spacc-ipsec" for the IPSEC offload engine 16 compatible = "picochip,spacc-ipsec";
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | Makefile | 69 mlx5_core-$(CONFIG_MLX5_FPGA_IPSEC) += fpga/ipsec.o 71 mlx5_core-$(CONFIG_MLX5_ACCEL) += lib/crypto.o accel/tls.o accel/ipsec.o 75 mlx5_core-$(CONFIG_MLX5_EN_IPSEC) += en_accel/ipsec.o en_accel/ipsec_rxtx.o \
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | .gitignore | 2 ipsec
|
D | Makefile | 34 TEST_GEN_FILES += ipsec
|
D | xfrm_policy.sh | 402 ip netns exec ns3 iptables -p icmp -A FORWARD -m policy --dir out --pol ipsec 403 ip netns exec ns4 iptables -p icmp -A FORWARD -m policy --dir out --pol ipsec
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
D | picoxcell-pc3x2.dtsi | 92 ipsec: spacc@100000 { label 93 compatible = "picochip,spacc-ipsec";
|
D | picoxcell-pc3x3.dtsi | 188 ipsec: spacc@100000 { label 189 compatible = "picochip,spacc-ipsec";
|
/kernel/linux/linux-5.10/drivers/net/bonding/ |
D | bond_main.c | 388 struct bond_ipsec *ipsec; in bond_ipsec_add_sa() local 412 ipsec = kmalloc(sizeof(*ipsec), GFP_ATOMIC); in bond_ipsec_add_sa() 413 if (!ipsec) { in bond_ipsec_add_sa() 421 ipsec->xs = xs; in bond_ipsec_add_sa() 422 INIT_LIST_HEAD(&ipsec->list); in bond_ipsec_add_sa() 424 list_add(&ipsec->list, &bond->ipsec_list); in bond_ipsec_add_sa() 427 kfree(ipsec); in bond_ipsec_add_sa() 436 struct bond_ipsec *ipsec; in bond_ipsec_add_sa_all() local 457 list_for_each_entry(ipsec, &bond->ipsec_list, list) { in bond_ipsec_add_sa_all() 458 ipsec->xs->xso.real_dev = slave->dev; in bond_ipsec_add_sa_all() [all …]
|
/kernel/linux/linux-5.10/Documentation/networking/ |
D | index.rst | 63 ipsec
|
D | xfrm_device.rst | 51 The NIC driver offering ipsec offload will need to implement these
|