Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_fs.c75 static struct mlx5e_ipsec_rx *ipsec_rx(struct mlx5e_ipsec *ipsec, u32 family, int type) in ipsec_rx() argument
77 if (ipsec->is_uplink_rep && type == XFRM_DEV_OFFLOAD_PACKET) in ipsec_rx()
78 return ipsec->rx_esw; in ipsec_rx()
81 return ipsec->rx_ipv4; in ipsec_rx()
83 return ipsec->rx_ipv6; in ipsec_rx()
86 static struct mlx5e_ipsec_tx *ipsec_tx(struct mlx5e_ipsec *ipsec, int type) in ipsec_tx() argument
88 if (ipsec->is_uplink_rep && type == XFRM_DEV_OFFLOAD_PACKET) in ipsec_tx()
89 return ipsec->tx_esw; in ipsec_tx()
91 return ipsec->tx; in ipsec_tx()
164 static void ipsec_rx_status_drop_destroy(struct mlx5e_ipsec *ipsec, in ipsec_rx_status_drop_destroy() argument
[all …]
H A Dipsec.c87 queue_delayed_work(sa_entry->ipsec->wq, &dwork->dwork, in mlx5e_ipsec_handle_sw_limits()
778 struct mlx5e_ipsec *ipsec; in mlx5e_xfrm_add_state() local
784 if (!priv->ipsec) in mlx5e_xfrm_add_state()
787 ipsec = priv->ipsec; in mlx5e_xfrm_add_state()
795 sa_entry->ipsec = ipsec; in mlx5e_xfrm_add_state()
857 err = xa_insert_bh(&ipsec->sadb, sa_entry->ipsec_obj_id, sa_entry, in mlx5e_xfrm_add_state()
865 queue_delayed_work(ipsec->wq, &sa_entry->dwork->dwork, in mlx5e_xfrm_add_state()
869 xa_lock_bh(&ipsec->sadb); in mlx5e_xfrm_add_state()
870 __xa_set_mark(&ipsec->sadb, sa_entry->ipsec_obj_id, in mlx5e_xfrm_add_state()
872 xa_unlock_bh(&ipsec->sadb); in mlx5e_xfrm_add_state()
[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()
349 struct mlx5e_ipsec *ipsec = priv->ipsec; in mlx5_esw_ipsec_rx_make_metadata() local
353 if (!ipsec || !ipsec->is_uplink_rep) in mlx5_esw_ipsec_rx_make_metadata()
[all …]
H A Dipsec_offload.c373 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_ipsec_handle_limits() local
374 struct mlx5e_ipsec_aso *aso = ipsec->aso; in mlx5e_ipsec_handle_limits()
460 aso = sa_entry->ipsec->aso; in mlx5e_ipsec_handle_event()
486 struct mlx5e_ipsec *ipsec = container_of(nb, struct mlx5e_ipsec, nb); in mlx5e_ipsec_event() local
502 sa_entry = xa_load(&ipsec->sadb, be32_to_cpu(object->obj_id)); in mlx5e_ipsec_event()
513 queue_work(ipsec->wq, &work->work); in mlx5e_ipsec_event()
517 int mlx5e_ipsec_aso_init(struct mlx5e_ipsec *ipsec) in mlx5e_ipsec_aso_init() argument
519 struct mlx5_core_dev *mdev = ipsec->mdev; in mlx5e_ipsec_aso_init()
525 aso = kzalloc(sizeof(*ipsec->aso), GFP_KERNEL); in mlx5e_ipsec_aso_init()
545 ipsec->nb.notifier_call = mlx5e_ipsec_event; in mlx5e_ipsec_aso_init()
[all …]
H A Dipsec.h279 struct mlx5e_ipsec *ipsec; member
304 struct mlx5e_ipsec *ipsec; member
315 void mlx5e_accel_ipsec_fs_cleanup(struct mlx5e_ipsec *ipsec);
316 int mlx5e_accel_ipsec_fs_init(struct mlx5e_ipsec *ipsec, struct mlx5_devcom_comp_dev **devcom);
332 int mlx5e_ipsec_aso_init(struct mlx5e_ipsec *ipsec);
333 void mlx5e_ipsec_aso_cleanup(struct mlx5e_ipsec *ipsec);
350 return sa_entry->ipsec->mdev; in mlx5e_ipsec_sa2dev()
356 return pol_entry->ipsec->mdev; in mlx5e_ipsec_pol2dev()
/linux/drivers/net/ethernet/intel/ixgbevf/
H A 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 …]
H A DMakefile10 ixgbevf-$(CONFIG_IXGBEVF_IPSEC) += ipsec.o
H A Dixgbevf.h383 struct ixgbevf_ipsec *ipsec; member
/linux/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
38 dest->ft = mlx5_chains_get_table(esw_chains(ipsec->mdev->priv.eswitch), 0, 1, 0); in mlx5_esw_ipsec_rx_status_pass_dest_get()
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
[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/drivers/net/ethernet/netronome/nfp/
H A DMakefile83 nfp-$(CONFIG_NFP_NET_IPSEC) += crypto/ipsec.o nfd3/ipsec.o nfdk/ipsec.o
/linux/drivers/net/bonding/
H A Dbond_main.c467 struct bond_ipsec *ipsec; in bond_ipsec_add_sa() local
494 ipsec = kmalloc(sizeof(*ipsec), GFP_KERNEL); in bond_ipsec_add_sa()
495 if (!ipsec) { in bond_ipsec_add_sa()
503 ipsec->xs = xs; in bond_ipsec_add_sa()
504 INIT_LIST_HEAD(&ipsec->list); in bond_ipsec_add_sa()
506 list_add(&ipsec->list, &bond->ipsec_list); in bond_ipsec_add_sa()
509 kfree(ipsec); in bond_ipsec_add_sa()
520 struct bond_ipsec *ipsec; in bond_ipsec_add_sa_all() local
539 list_for_each_entry(ipsec, &bond->ipsec_list, list) { in bond_ipsec_add_sa_all()
541 if (ipsec->xs->xso.real_dev == real_dev) in bond_ipsec_add_sa_all()
[all …]
/linux/tools/testing/selftests/net/
H A D.gitignore14 ipsec
H A DMakefile135 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
H A Drtnetlink.sh747 sysfsf=$sysfsd/ipsec
/linux/Documentation/translations/zh_CN/networking/
H A Dindex.rst89 * ipsec
/linux/net/sched/
H A Dcls_flower.c86 struct flow_dissector_key_ipsec ipsec; member
837 fl_set_key_val(tb, &key->ipsec.spi, in fl_set_key_spi()
839 &mask->ipsec.spi, TCA_FLOWER_KEY_SPI_MASK, in fl_set_key_spi()
840 sizeof(key->ipsec.spi)); in fl_set_key_spi()
2227 FLOW_DISSECTOR_KEY_IPSEC, ipsec); in fl_init_dissector()
3612 if (key->ipsec.spi && in fl_dump_key()
3613 fl_dump_key_val(skb, &key->ipsec.spi, TCA_FLOWER_KEY_SPI, in fl_dump_key()
3614 &mask->ipsec.spi, TCA_FLOWER_KEY_SPI_MASK, in fl_dump_key()
3615 sizeof(key->ipsec.spi))) in fl_dump_key()
/linux/Documentation/security/
H A DSCTP.rst342 7) IPSEC is not supported as RFC 3554 - sctp/ipsec support has not been
/linux/Documentation/networking/
H A Dpktgen.rst373 spi (ipsec)
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe.h844 struct ixgbe_ipsec *ipsec; member
H A Dixgbe_main.c11768 if (adapter->ipsec) in ixgbe_probe()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den.h942 struct mlx5e_ipsec *ipsec; member
/linux/Documentation/networking/device_drivers/ethernet/intel/
H A Dixgbe.rst531 ethtool --set-priv-flags eth<x> vf-ipsec on

12