Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_fs.c182 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in ipsec_rx_rule_add_match_obj() local
200 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in rx_add_rule_drop_auth_trailer() local
279 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in rx_add_rule_drop_replay() local
637 mlx5_ipsec_fs_roce_tx_create(ipsec->mdev, ipsec->roce, ipsec->tx->ft.pol, in ipsec_mpv_work_handler()
1124 rx_destroy(ipsec->mdev, ipsec, rx, family); in rx_put()
1394 err = tx_create(ipsec, tx, ipsec->roce); in tx_get()
1418 tx_destroy(ipsec, tx, ipsec->roce); in tx_put()
1928 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in rx_add_rule_sa_selector() local
2007 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in rx_add_rule() local
2472 ipsec->rx_ipv6->fc = ipsec->rx_ipv4->fc; in ipsec_fs_init_counters()
[all …]
H A Dipsec.c709 ipsec = priv->ipsec; in mlx5e_xfrm_add_state()
716 sa_entry->ipsec = ipsec; in mlx5e_xfrm_add_state()
815 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_xfrm_del_state() local
828 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_xfrm_free_state() local
900 ipsec = kzalloc(sizeof(*ipsec), GFP_KERNEL); in mlx5e_ipsec_init()
901 if (!ipsec) in mlx5e_ipsec_init()
932 priv->ipsec = ipsec; in mlx5e_ipsec_init()
945 kfree(ipsec); in mlx5e_ipsec_init()
952 struct mlx5e_ipsec *ipsec = priv->ipsec; in mlx5e_ipsec_cleanup() local
954 if (!ipsec) in mlx5e_ipsec_cleanup()
[all …]
H A Dipsec_stats.c69 if (!priv->ipsec) in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS()
81 if (!priv->ipsec) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS()
92 if (!priv->ipsec) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
95 mlx5e_accel_ipsec_fs_read_stats(priv, &priv->ipsec->hw_stats); in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
99 MLX5E_READ_CTR_ATOMIC64(&priv->ipsec->hw_stats, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
105 return priv->ipsec ? NUM_IPSEC_SW_COUNTERS : 0; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS()
114 if (priv->ipsec) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS()
123 if (priv->ipsec) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
127 &priv->ipsec->sw_stats, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
H A Dipsec_rxtx.c273 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_bundle); in mlx5e_ipsec_handle_tx_skb()
279 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_no_state); in mlx5e_ipsec_handle_tx_skb()
286 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_not_ip); in mlx5e_ipsec_handle_tx_skb()
292 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_trailer); in mlx5e_ipsec_handle_tx_skb()
312 struct mlx5e_ipsec *ipsec = priv->ipsec; in mlx5e_ipsec_offload_handle_rx_skb() local
321 atomic64_inc(&ipsec->sw_stats.ipsec_rx_drop_sp_alloc); in mlx5e_ipsec_offload_handle_rx_skb()
326 sa_entry = xa_load(&ipsec->sadb, sa_handle); in mlx5e_ipsec_offload_handle_rx_skb()
329 atomic64_inc(&ipsec->sw_stats.ipsec_rx_drop_sadb_miss); in mlx5e_ipsec_offload_handle_rx_skb()
345 struct mlx5e_ipsec *ipsec = priv->ipsec; in mlx5_esw_ipsec_rx_make_metadata() local
349 if (!ipsec || !ipsec->is_uplink_rep) in mlx5_esw_ipsec_rx_make_metadata()
[all …]
H A Dipsec_offload.c374 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_ipsec_handle_limits() local
375 struct mlx5e_ipsec_aso *aso = ipsec->aso; in mlx5e_ipsec_handle_limits()
461 aso = sa_entry->ipsec->aso; in mlx5e_ipsec_handle_event()
514 queue_work(ipsec->wq, &work->work); in mlx5e_ipsec_event()
520 struct mlx5_core_dev *mdev = ipsec->mdev; in mlx5e_ipsec_aso_init()
547 mlx5_notifier_register(mdev, &ipsec->nb); in mlx5e_ipsec_aso_init()
549 ipsec->aso = aso; in mlx5e_ipsec_aso_init()
562 struct mlx5_core_dev *mdev = ipsec->mdev; in mlx5e_ipsec_aso_cleanup()
566 aso = ipsec->aso; in mlx5e_ipsec_aso_cleanup()
574 ipsec->aso = NULL; in mlx5e_ipsec_aso_cleanup()
[all …]
H A Den_accel.h120 struct mlx5e_accel_tx_ipsec_state ipsec; member
142 if (unlikely(!mlx5e_ipsec_handle_tx_skb(dev, skb, &state->ipsec))) in mlx5e_accel_tx_begin()
164 return mlx5e_ipsec_tx_ids_len(&state->ipsec); in mlx5e_accel_tx_ids_len()
204 state->ipsec.xo && state->ipsec.tailen) in mlx5e_accel_tx_finish()
205 mlx5e_ipsec_handle_tx_wqe(wqe, &state->ipsec, inlseg); in mlx5e_accel_tx_finish()
H A Dipsec.h277 struct mlx5e_ipsec *ipsec; member
302 struct mlx5e_ipsec *ipsec; member
313 void mlx5e_accel_ipsec_fs_cleanup(struct mlx5e_ipsec *ipsec);
314 int mlx5e_accel_ipsec_fs_init(struct mlx5e_ipsec *ipsec, struct mlx5_devcom_comp_dev **devcom);
330 int mlx5e_ipsec_aso_init(struct mlx5e_ipsec *ipsec);
331 void mlx5e_ipsec_aso_cleanup(struct mlx5e_ipsec *ipsec);
347 return sa_entry->ipsec->mdev; in mlx5e_ipsec_sa2dev()
353 return pol_entry->ipsec->mdev; in mlx5e_ipsec_pol2dev()
/linux-6.15/drivers/net/ethernet/intel/ixgbevf/
H A Dipsec.c103 struct ixgbevf_ipsec *ipsec = adapter->ipsec; in ixgbevf_ipsec_restore() local
272 ipsec = adapter->ipsec; in ixgbevf_ipsec_add_sa()
401 ipsec = adapter->ipsec; in ixgbevf_ipsec_del_sa()
447 struct ixgbevf_ipsec *ipsec = adapter->ipsec; in ixgbevf_ipsec_tx() local
542 struct ixgbevf_ipsec *ipsec = adapter->ipsec; in ixgbevf_ipsec_rx() local
616 ipsec = kzalloc(sizeof(*ipsec), GFP_KERNEL); in ixgbevf_init_ipsec_offload()
617 if (!ipsec) in ixgbevf_init_ipsec_offload()
634 adapter->ipsec = ipsec; in ixgbevf_init_ipsec_offload()
650 kfree(ipsec); in ixgbevf_init_ipsec_offload()
661 struct ixgbevf_ipsec *ipsec = adapter->ipsec; in ixgbevf_stop_ipsec_offload() local
[all …]
H A DMakefile10 ixgbevf-$(CONFIG_IXGBEVF_IPSEC) += ipsec.o
/linux-6.15/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ipsec.c305 struct ixgbe_ipsec *ipsec = adapter->ipsec; in ixgbe_ipsec_restore() local
567 struct ixgbe_ipsec *ipsec = adapter->ipsec; in ixgbe_ipsec_add_sa() local
761 struct ixgbe_ipsec *ipsec = adapter->ipsec; in ixgbe_ipsec_del_sa() local
832 struct ixgbe_ipsec *ipsec = adapter->ipsec; in ixgbe_ipsec_vf_clear() local
871 struct ixgbe_ipsec *ipsec = adapter->ipsec; in ixgbe_ipsec_vf_add_sa() local
981 struct ixgbe_ipsec *ipsec = adapter->ipsec; in ixgbe_ipsec_vf_del_sa() local
1056 struct ixgbe_ipsec *ipsec = adapter->ipsec; in ixgbe_ipsec_tx() local
1149 struct ixgbe_ipsec *ipsec = adapter->ipsec; in ixgbe_ipsec_rx() local
1231 ipsec = kzalloc(sizeof(*ipsec), GFP_KERNEL); in ixgbe_init_ipsec_offload()
1254 adapter->ipsec = ipsec; in ixgbe_init_ipsec_offload()
[all …]
/linux-6.15/drivers/net/netdevsim/
H A Dipsec.c17 struct nsim_ipsec *ipsec = &ns->ipsec; in nsim_dbg_netdev_ops_read() local
34 ipsec->count, ipsec->tx); in nsim_dbg_netdev_ops_read()
144 ipsec = &ns->ipsec; in nsim_ipsec_add_sa()
198 ipsec->count++; in nsim_ipsec_add_sa()
206 struct nsim_ipsec *ipsec = &ns->ipsec; in nsim_ipsec_del_sa() local
217 ipsec->count--; in nsim_ipsec_del_sa()
228 struct nsim_ipsec *ipsec = &ns->ipsec; in nsim_ipsec_tx() local
267 ipsec->tx++; in nsim_ipsec_tx()
290 struct nsim_ipsec *ipsec = &ns->ipsec; in nsim_ipsec_teardown() local
292 if (ipsec->count) in nsim_ipsec_teardown()
[all …]
H A DMakefile14 netdevsim-objs += ipsec.o
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dipsec_fs.c24 void mlx5_esw_ipsec_rx_create_attr_set(struct mlx5e_ipsec *ipsec, in mlx5_esw_ipsec_rx_create_attr_set() argument
34 int mlx5_esw_ipsec_rx_status_pass_dest_get(struct mlx5e_ipsec *ipsec, in mlx5_esw_ipsec_rx_status_pass_dest_get() argument
47 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5_esw_ipsec_rx_setup_modify_header() local
48 struct mlx5_core_dev *mdev = ipsec->mdev; in mlx5_esw_ipsec_rx_setup_modify_header()
53 err = xa_alloc_bh(&ipsec->ipsec_obj_id_map, &mapped_id, in mlx5_esw_ipsec_rx_setup_modify_header()
84 xa_erase_bh(&ipsec->ipsec_obj_id_map, mapped_id); in mlx5_esw_ipsec_rx_setup_modify_header()
103 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5_esw_ipsec_rx_id_mapping_remove() local
106 xa_erase_bh(&ipsec->ipsec_obj_id_map, in mlx5_esw_ipsec_rx_id_mapping_remove()
113 struct mlx5e_ipsec *ipsec = priv->ipsec; in mlx5_esw_ipsec_rx_ipsec_obj_id_search() local
116 val = xa_load(&ipsec->ipsec_obj_id_map, id); in mlx5_esw_ipsec_rx_ipsec_obj_id_search()
[all …]
H A Dipsec_fs.h11 void mlx5_esw_ipsec_rx_create_attr_set(struct mlx5e_ipsec *ipsec,
13 int mlx5_esw_ipsec_rx_status_pass_dest_get(struct mlx5e_ipsec *ipsec,
20 void mlx5_esw_ipsec_tx_create_attr_set(struct mlx5e_ipsec *ipsec,
26 static inline void mlx5_esw_ipsec_rx_create_attr_set(struct mlx5e_ipsec *ipsec, in mlx5_esw_ipsec_rx_create_attr_set() argument
29 static inline int mlx5_esw_ipsec_rx_status_pass_dest_get(struct mlx5e_ipsec *ipsec, in mlx5_esw_ipsec_rx_status_pass_dest_get() argument
49 static inline void mlx5_esw_ipsec_tx_create_attr_set(struct mlx5e_ipsec *ipsec, in mlx5_esw_ipsec_tx_create_attr_set() argument
/linux-6.15/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn10k_ipsec.c27 state = atomic_cmpxchg(&pf->ipsec.cpt_state, in cn10k_cpt_device_set_inuse()
697 if (!pf->ipsec.outb_sa_count) in cn10k_ipsec_outb_add_state()
699 pf->ipsec.outb_sa_count++; in cn10k_ipsec_outb_add_state()
743 if (!--pf->ipsec.outb_sa_count) in cn10k_ipsec_del_state()
744 queue_work(pf->ipsec.sa_workq, &pf->ipsec.sa_work); in cn10k_ipsec_del_state()
756 struct otx2_nic *pf = container_of(ipsec, struct otx2_nic, ipsec); in cn10k_ipsec_sa_wq_handler()
778 if (pf->ipsec.outb_sa_count) { in cn10k_ipsec_ethtool_init()
798 pf->ipsec.sa_size = sa_size; in cn10k_ipsec_init()
802 if (!pf->ipsec.sa_workq) { in cn10k_ipsec_init()
825 if (pf->ipsec.sa_workq) { in cn10k_ipsec_clean()
[all …]
/linux-6.15/Documentation/devicetree/bindings/rng/
H A Dbrcm,bcm2835.yaml29 const: ipsec
35 const: ipsec
78 clock-names = "ipsec";
81 reset-names = "ipsec";
/linux-6.15/drivers/net/ethernet/netronome/nfp/
H A DMakefile83 nfp-$(CONFIG_NFP_NET_IPSEC) += crypto/ipsec.o nfd3/ipsec.o nfdk/ipsec.o
/linux-6.15/drivers/net/ethernet/netronome/nfp/nfdk/
H A Ddp.c179 struct sk_buff *skb, bool *ipsec) in nfp_nfdk_prep_tx_meta() argument
190 *ipsec = nfp_net_ipsec_tx_prep(dp, skb, &offload_info); in nfp_nfdk_prep_tx_meta()
198 if (!(md_dst || vlan_insert || *ipsec)) in nfp_nfdk_prep_tx_meta()
204 (*ipsec ? NFP_NET_META_IPSEC_FIELD_SIZE : 0); in nfp_nfdk_prep_tx_meta()
226 if (*ipsec) { in nfp_nfdk_prep_tx_meta()
268 bool ipsec = false; in nfp_nfdk_tx() local
289 metadata = nfp_nfdk_prep_tx_meta(dp, nn->app, skb, &ipsec); in nfp_nfdk_tx()
387 if (ipsec) in nfp_nfdk_tx()
393 if (!ipsec) in nfp_nfdk_tx()
402 if (!ipsec) in nfp_nfdk_tx()
/linux-6.15/tools/testing/selftests/net/
H A D.gitignore16 ipsec
H A Dxfrm_policy.sh402 ip netns exec ${ns[3]} iptables -p icmp -A FORWARD -m policy --dir out --pol ipsec
403 ip netns exec ${ns[4]} iptables -p icmp -A FORWARD -m policy --dir out --pol ipsec
/linux-6.15/arch/mips/boot/dts/brcm/
H A Dbcm6368.dtsi232 clock-names = "ipsec";
235 reset-names = "ipsec";
/linux-6.15/drivers/net/ethernet/netronome/nfp/nfd3/
H A Ddp.c175 u64 tls_handle, bool *ipsec) in nfp_nfd3_prep_tx_meta() argument
186 *ipsec = nfp_net_ipsec_tx_prep(dp, skb, &offload_info); in nfp_nfd3_prep_tx_meta()
194 if (!(md_dst || tls_handle || vlan_insert || *ipsec)) in nfp_nfd3_prep_tx_meta()
201 (*ipsec ? NFP_NET_META_IPSEC_FIELD_SIZE : 0); in nfp_nfd3_prep_tx_meta()
231 if (*ipsec) { in nfp_nfd3_prep_tx_meta()
269 bool ipsec = false; in nfp_nfd3_tx() local
297 md_bytes = nfp_nfd3_prep_tx_meta(dp, skb, tls_handle, &ipsec); in nfp_nfd3_tx()
330 if (ipsec) in nfp_nfd3_tx()
/linux-6.15/drivers/net/bonding/
H A Dbond_main.c465 struct bond_ipsec *ipsec; in bond_ipsec_add_sa() local
492 ipsec = kmalloc(sizeof(*ipsec), GFP_KERNEL); in bond_ipsec_add_sa()
493 if (!ipsec) { in bond_ipsec_add_sa()
501 ipsec->xs = xs; in bond_ipsec_add_sa()
507 kfree(ipsec); in bond_ipsec_add_sa()
518 struct bond_ipsec *ipsec; in bond_ipsec_add_sa_all() local
561 struct bond_ipsec *ipsec; in bond_ipsec_del_sa() local
595 if (ipsec->xs == xs) { in bond_ipsec_del_sa()
596 list_del(&ipsec->list); in bond_ipsec_del_sa()
597 kfree(ipsec); in bond_ipsec_del_sa()
[all …]
/linux-6.15/Documentation/networking/
H A Dindex.rst68 ipsec
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A DMakefile73 esw/devlink_port.o esw/vporttbl.o esw/qos.o esw/ipsec.o
105 mlx5_core-$(CONFIG_MLX5_EN_IPSEC) += en_accel/ipsec.o en_accel/ipsec_rxtx.o \

12