Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c103 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 …]
DMakefile13 ixgbevf-$(CONFIG_IXGBEVF_IPSEC) += ipsec.o
Dixgbevf.h395 struct ixgbevf_ipsec *ipsec; member
/Linux-v6.1/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 …]
DMakefile14 netdevsim-objs += ipsec.o
Dnetdevsim.h95 struct nsim_ipsec ipsec; member
/Linux-v6.1/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c305 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 …]
Dixgbe.h814 struct ixgbe_ipsec *ipsec; member
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c48 struct xfrm_state *mlx5e_ipsec_sadb_rx_lookup(struct mlx5e_ipsec *ipsec, in mlx5e_ipsec_sadb_rx_lookup() argument
55 hash_for_each_possible_rcu(ipsec->sadb_rx, sa_entry, hlist, handle) in mlx5e_ipsec_sadb_rx_lookup()
69 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_ipsec_sadb_rx_add() local
74 hash_for_each_possible_rcu(ipsec->sadb_rx, _sa_entry, hlist, handle) in mlx5e_ipsec_sadb_rx_add()
81 spin_lock_irqsave(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_add()
83 hash_add_rcu(ipsec->sadb_rx, &sa_entry->hlist, sa_entry->handle); in mlx5e_ipsec_sadb_rx_add()
84 spin_unlock_irqrestore(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_add()
91 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_ipsec_sadb_rx_del() local
94 spin_lock_irqsave(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_del()
96 spin_unlock_irqrestore(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_del()
[all …]
Dipsec_fs.c161 accel_esp = priv->ipsec->rx_fs; in rx_destroy()
185 accel_esp = priv->ipsec->rx_fs; in rx_create()
240 accel_esp = priv->ipsec->rx_fs; in rx_ft_get()
269 accel_esp = priv->ipsec->rx_fs; in rx_ft_put()
290 struct mlx5e_ipsec *ipsec = priv->ipsec; in tx_create() local
296 ft = mlx5_create_auto_grouped_flow_table(ipsec->tx_fs->ns, &ft_attr); in tx_create()
302 ipsec->tx_fs->ft = ft; in tx_create()
308 struct mlx5e_ipsec_tx *tx_fs = priv->ipsec->tx_fs; in tx_ft_get()
327 struct mlx5e_ipsec_tx *tx_fs = priv->ipsec->tx_fs; in tx_ft_put()
413 accel_esp = priv->ipsec->rx_fs; in rx_add_rule()
[all …]
Dipsec_stats.c57 return priv->ipsec ? NUM_IPSEC_SW_COUNTERS : 0; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS()
66 if (priv->ipsec) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS()
77 if (priv->ipsec) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
79 data[idx++] = MLX5E_READ_CTR_ATOMIC64(&priv->ipsec->sw_stats, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
Den_accel.h114 struct mlx5e_accel_tx_ipsec_state ipsec; member
136 if (unlikely(!mlx5e_ipsec_handle_tx_skb(dev, skb, &state->ipsec))) in mlx5e_accel_tx_begin()
158 return mlx5e_ipsec_tx_ids_len(&state->ipsec); in mlx5e_accel_tx_ids_len()
198 state->ipsec.xo && state->ipsec.tailen) in mlx5e_accel_tx_finish()
199 mlx5e_ipsec_handle_tx_wqe(wqe, &state->ipsec, inlseg); in mlx5e_accel_tx_finish()
Dipsec_rxtx.c270 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_bundle); in mlx5e_ipsec_handle_tx_skb()
276 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_no_state); in mlx5e_ipsec_handle_tx_skb()
283 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_not_ip); in mlx5e_ipsec_handle_tx_skb()
289 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_trailer); in mlx5e_ipsec_handle_tx_skb()
325 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_sp_alloc); in mlx5e_ipsec_offload_handle_rx_skb()
329 xs = mlx5e_ipsec_sadb_rx_lookup(priv->ipsec, sa_handle); in mlx5e_ipsec_offload_handle_rx_skb()
331 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_sadb_miss); in mlx5e_ipsec_offload_handle_rx_skb()
352 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_syndrome); in mlx5e_ipsec_offload_handle_rx_skb()
Dipsec.h139 struct mlx5e_ipsec *ipsec; member
156 void mlx5e_accel_ipsec_fs_cleanup(struct mlx5e_ipsec *ipsec);
157 int mlx5e_accel_ipsec_fs_init(struct mlx5e_ipsec *ipsec);
174 return sa_entry->ipsec->mdev; in mlx5e_ipsec_sa2dev()
/Linux-v6.1/tools/testing/selftests/net/
D.gitignore10 ipsec
DMakefile59 TEST_GEN_FILES += ipsec
Dxfrm_policy.sh402 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
/Linux-v6.1/arch/mips/boot/dts/brcm/
Dbcm6368.dtsi231 clock-names = "ipsec";
234 reset-names = "ipsec";
/Linux-v6.1/Documentation/networking/
Dindex.rst63 ipsec
Dxfrm_device.rst51 The NIC driver offering ipsec offload will need to implement these
Dpktgen.rst361 spi (ipsec)
/Linux-v6.1/drivers/net/bonding/
Dbond_main.c426 struct bond_ipsec *ipsec; in bond_ipsec_add_sa() local
450 ipsec = kmalloc(sizeof(*ipsec), GFP_ATOMIC); in bond_ipsec_add_sa()
451 if (!ipsec) { in bond_ipsec_add_sa()
459 ipsec->xs = xs; in bond_ipsec_add_sa()
460 INIT_LIST_HEAD(&ipsec->list); in bond_ipsec_add_sa()
462 list_add(&ipsec->list, &bond->ipsec_list); in bond_ipsec_add_sa()
465 kfree(ipsec); in bond_ipsec_add_sa()
474 struct bond_ipsec *ipsec; in bond_ipsec_add_sa_all() local
495 list_for_each_entry(ipsec, &bond->ipsec_list, list) { in bond_ipsec_add_sa_all()
496 ipsec->xs->xso.real_dev = slave->dev; in bond_ipsec_add_sa_all()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
DMakefile98 mlx5_core-$(CONFIG_MLX5_EN_IPSEC) += en_accel/ipsec.o en_accel/ipsec_rxtx.o \
Den.h955 struct mlx5e_ipsec *ipsec; member
/Linux-v6.1/Documentation/security/
DSCTP.rst342 7) IPSEC is not supported as RFC 3554 - sctp/ipsec support has not been

12