/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | ipsec_fs.h | 11 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, 24 static inline void mlx5_esw_ipsec_rx_create_attr_set(struct mlx5e_ipsec *ipsec, argument 27 static inline int mlx5_esw_ipsec_rx_status_pass_dest_get(struct mlx5e_ipsec *ipsec, argument 47 static inline void mlx5_esw_ipsec_tx_create_attr_set(struct mlx5e_ipsec *ipsec, argument
|
H A D | ipsec_fs.c | 6 #include "en_accel/ipsec.h" 24 void mlx5_esw_ipsec_rx_create_attr_set(struct mlx5e_ipsec *ipsec, argument 34 int mlx5_esw_ipsec_rx_status_pass_dest_get(struct mlx5e_ipsec *ipsec, argument 38 dest->ft = mlx5_chains_get_table(esw_chains(ipsec->mdev->priv.eswitch), 0, 1, 0); 47 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; local 48 struct mlx5_core_dev *mdev = ipsec->mdev; 53 err = xa_alloc_bh(&ipsec->ipsec_obj_id_map, &mapped_id, 59 /* reuse tunnel bits for ipsec, 84 xa_erase_bh(&ipsec 90 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; local 100 struct mlx5e_ipsec *ipsec = priv->ipsec; local 112 mlx5_esw_ipsec_tx_create_attr_set(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_tx_create_attr *attr) argument [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec_fs.c | 8 #include "ipsec.h" 59 static struct mlx5e_ipsec_rx *ipsec_rx(struct mlx5e_ipsec *ipsec, u32 family, int type) argument 61 if (ipsec->is_uplink_rep && type == XFRM_DEV_OFFLOAD_PACKET) 62 return ipsec->rx_esw; 65 return ipsec->rx_ipv4; 67 return ipsec->rx_ipv6; 70 static struct mlx5e_ipsec_tx *ipsec_tx(struct mlx5e_ipsec *ipsec, int type) argument 72 if (ipsec->is_uplink_rep && type == XFRM_DEV_OFFLOAD_PACKET) 73 return ipsec->tx_esw; 75 return ipsec 147 ipsec_rx_status_drop_destroy(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx) argument 155 ipsec_rx_status_pass_destroy(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx) argument 171 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; local 253 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; local 309 ipsec_rx_status_drop_all_create(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx) argument 380 ipsec_rx_status_pass_create(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, struct mlx5_flow_destination *dest) argument 424 mlx5_ipsec_rx_status_destroy(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx) argument 431 mlx5_ipsec_rx_status_create(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, struct mlx5_flow_destination *dest) argument 496 handle_ipsec_rx_bringup(struct mlx5e_ipsec *ipsec, u32 family) argument 514 handle_ipsec_rx_cleanup(struct mlx5e_ipsec *ipsec, u32 family) argument 532 struct mlx5e_ipsec *ipsec = work->slave_priv->ipsec; local 573 ipsec_rx_ft_disconnect(struct mlx5e_ipsec *ipsec, u32 family) argument 580 rx_destroy(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, u32 family) argument 606 ipsec_rx_create_attr_set(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, u32 family, struct mlx5e_ipsec_rx_create_attr *attr) argument 628 ipsec_rx_status_pass_dest_get(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, struct mlx5e_ipsec_rx_create_attr *attr, struct mlx5_flow_destination *dest) argument 655 ipsec_rx_ft_connect(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, struct mlx5e_ipsec_rx_create_attr *attr) argument 666 rx_create(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, u32 family) argument 762 rx_get(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, u32 family) argument 785 rx_put(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, u32 family) argument 795 rx_ft_get(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, u32 family, int type) argument 811 rx_ft_get_policy(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, u32 family, u32 prio, int type) argument 840 rx_ft_put(struct mlx5e_ipsec *ipsec, u32 family, int type) argument 849 rx_ft_put_policy(struct mlx5e_ipsec *ipsec, u32 family, u32 prio, int type) argument 895 tx_destroy(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_tx *tx, struct mlx5_ipsec_fs *roce) argument 918 ipsec_tx_create_attr_set(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_tx *tx, struct mlx5e_ipsec_tx_create_attr *attr) argument 934 tx_create(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_tx *tx, struct mlx5_ipsec_fs *roce) argument 1049 tx_get(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_tx *tx) argument 1075 tx_put(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_tx *tx) argument 1089 tx_ft_get_policy(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, u32 prio, int type) argument 1118 tx_ft_get(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, int type) argument 1133 tx_ft_put(struct mlx5e_ipsec *ipsec, int type) argument 1142 tx_ft_put_policy(struct mlx5e_ipsec *ipsec, u32 prio, int type) argument 1304 ipsec_fs_get_ns(struct mlx5e_ipsec *ipsec, int type, u8 dir) argument 1316 setup_modify_header(struct mlx5e_ipsec *ipsec, int type, u32 val, u8 dir, struct mlx5_flow_act *flow_act) argument 1544 setup_pkt_reformat(struct mlx5e_ipsec *ipsec, struct mlx5_accel_esp_xfrm_attrs *attrs, struct mlx5_flow_act *flow_act) argument 1584 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; local 1703 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; local 1796 struct mlx5e_ipsec *ipsec = pol_entry->ipsec; local 1880 struct mlx5e_ipsec *ipsec = pol_entry->ipsec; local 1958 ipsec_fs_destroy_counters(struct mlx5e_ipsec *ipsec) argument 2003 ipsec_fs_init_counters(struct mlx5e_ipsec *ipsec) argument 2056 struct mlx5e_ipsec *ipsec = priv->ipsec; local 2253 mlx5e_accel_ipsec_fs_cleanup(struct mlx5e_ipsec *ipsec) argument 2287 mlx5e_accel_ipsec_fs_init(struct mlx5e_ipsec *ipsec, struct mlx5_devcom_comp_dev **devcom) argument [all...] |
H A D | ipsec_stats.c | 38 #include "ipsec.h" 68 if (!priv->ipsec) 80 if (!priv->ipsec) 94 if (!priv->ipsec) 97 mlx5e_accel_ipsec_fs_read_stats(priv, &priv->ipsec->hw_stats); 99 data[idx++] = MLX5E_READ_CTR_ATOMIC64(&priv->ipsec->hw_stats, 107 return priv->ipsec ? NUM_IPSEC_SW_COUNTERS : 0; 116 if (priv->ipsec) 127 if (priv->ipsec) 129 data[idx++] = MLX5E_READ_CTR_ATOMIC64(&priv->ipsec [all...] |
H A D | ipsec.c | 42 #include "ipsec.h" 80 queue_delayed_work(sa_entry->ipsec->wq, &dwork->dwork, 688 struct mlx5e_ipsec *ipsec; local 694 if (!priv->ipsec) 697 ipsec = priv->ipsec; 704 sa_entry->ipsec = ipsec; 753 err = xa_insert_bh(&ipsec->sadb, sa_entry->ipsec_obj_id, sa_entry, 761 queue_delayed_work(ipsec 795 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; local 814 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; local 842 struct mlx5e_ipsec *ipsec; local 878 struct mlx5e_ipsec *ipsec; local 938 struct mlx5e_ipsec *ipsec = priv->ipsec; local [all...] |
H A D | ipsec_rxtx.c | 37 #include "ipsec.h" 273 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_bundle); 279 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_no_state); 286 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_not_ip); 292 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_trailer); 312 struct mlx5e_ipsec *ipsec = priv->ipsec; local 321 atomic64_inc(&ipsec->sw_stats.ipsec_rx_drop_sp_alloc); 326 sa_entry = xa_load(&ipsec->sadb, sa_handle); 329 atomic64_inc(&ipsec 345 struct mlx5e_ipsec *ipsec = priv->ipsec; local [all...] |
H A D | en_accel.h | 114 struct mlx5e_accel_tx_ipsec_state ipsec; member in struct:mlx5e_accel_tx_state 136 if (unlikely(!mlx5e_ipsec_handle_tx_skb(dev, skb, &state->ipsec))) 158 return mlx5e_ipsec_tx_ids_len(&state->ipsec); 198 state->ipsec.xo && state->ipsec.tailen) 199 mlx5e_ipsec_handle_tx_wqe(wqe, &state->ipsec, inlseg);
|
H A D | ipsec_offload.c | 6 #include "ipsec.h" 367 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; local 368 struct mlx5e_ipsec_aso *aso = ipsec->aso; 454 aso = sa_entry->ipsec->aso; 480 struct mlx5e_ipsec *ipsec = container_of(nb, struct mlx5e_ipsec, nb); local 496 sa_entry = xa_load(&ipsec->sadb, be32_to_cpu(object->obj_id)); 507 queue_work(ipsec->wq, &work->work); 511 int mlx5e_ipsec_aso_init(struct mlx5e_ipsec *ipsec) argument 513 struct mlx5_core_dev *mdev = ipsec 553 mlx5e_ipsec_aso_cleanup(struct mlx5e_ipsec *ipsec) argument 591 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; local [all...] |
H A D | ipsec.h | 263 struct mlx5e_ipsec *ipsec; member in struct:mlx5e_ipsec_sa_entry 298 struct mlx5e_ipsec *ipsec; member in struct:mlx5e_ipsec_pol_entry 309 void mlx5e_accel_ipsec_fs_cleanup(struct mlx5e_ipsec *ipsec); 310 int mlx5e_accel_ipsec_fs_init(struct mlx5e_ipsec *ipsec, struct mlx5_devcom_comp_dev **devcom); 326 int mlx5e_ipsec_aso_init(struct mlx5e_ipsec *ipsec); 327 void mlx5e_ipsec_aso_cleanup(struct mlx5e_ipsec *ipsec); 343 return sa_entry->ipsec->mdev; 349 return pol_entry->ipsec->mdev;
|
/linux-master/drivers/net/netdevsim/ |
H A D | ipsec.c | 17 struct nsim_ipsec *ipsec = &ns->ipsec; local 26 bufsize = (ipsec->count * 4 * 60) + 60; 34 ipsec->count, ipsec->tx); 37 struct nsim_sa *sap = &ipsec->sa[i]; 68 static int nsim_ipsec_find_empty_idx(struct nsim_ipsec *ipsec) argument 72 if (ipsec->count == NSIM_IPSEC_MAX_SA_COUNT) 77 if (!ipsec->sa[i].used) 131 struct nsim_ipsec *ipsec; local 203 struct nsim_ipsec *ipsec = &ns->ipsec; local 220 struct nsim_ipsec *ipsec = &ns->ipsec; local 236 struct nsim_ipsec *ipsec = &ns->ipsec; local 298 struct nsim_ipsec *ipsec = &ns->ipsec; local [all...] |
H A D | Makefile | 14 netdevsim-objs += ipsec.o
|
H A D | netdevsim.h | 118 struct nsim_ipsec ipsec; member in struct:netdevsim
|
/linux-master/drivers/net/ethernet/intel/ixgbevf/ |
H A D | Makefile | 13 ixgbevf-$(CONFIG_IXGBEVF_IPSEC) += ipsec.o
|
H A D | ipsec.c | 103 struct ixgbevf_ipsec *ipsec = adapter->ipsec; local 112 struct rx_sa *r = &ipsec->rx_tbl[i]; 113 struct tx_sa *t = &ipsec->tx_tbl[i]; 134 * @ipsec: pointer to IPsec struct 140 int ixgbevf_ipsec_find_empty_idx(struct ixgbevf_ipsec *ipsec, bool rxtable) argument 145 if (ipsec->num_rx_sa == IXGBE_IPSEC_MAX_SA_COUNT) 150 if (!ipsec->rx_tbl[i].used) 154 if (ipsec->num_tx_sa == IXGBE_IPSEC_MAX_SA_COUNT) 159 if (!ipsec 178 ixgbevf_ipsec_find_rx_state(struct ixgbevf_ipsec *ipsec, __be32 *daddr, u8 proto, __be32 spi, bool ip4) argument 267 struct ixgbevf_ipsec *ipsec; local 397 struct ixgbevf_ipsec *ipsec; local 468 struct ixgbevf_ipsec *ipsec = adapter->ipsec; local 563 struct ixgbevf_ipsec *ipsec = adapter->ipsec; local 627 struct ixgbevf_ipsec *ipsec; local 683 struct ixgbevf_ipsec *ipsec = adapter->ipsec; local [all...] |
H A D | ixgbevf.h | 17 #include "ipsec.h" 395 struct ixgbevf_ipsec *ipsec; member in struct:ixgbevf_adapter
|
/linux-master/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ipsec.c | 248 /* final set for normal (no ipsec offload) processing */ 293 * ixgbe_ipsec_restore - restore the ipsec HW settings after a reset 305 struct ixgbe_ipsec *ipsec = adapter->ipsec; local 319 struct rx_sa *r = &ipsec->rx_tbl[i]; 320 struct tx_sa *t = &ipsec->tx_tbl[i]; 341 struct rx_ip_sa *ipsa = &ipsec->ip_tbl[i]; 350 * @ipsec: pointer to ipsec struct 355 static int ixgbe_ipsec_find_empty_idx(struct ixgbe_ipsec *ipsec, boo argument 392 ixgbe_ipsec_find_rx_state(struct ixgbe_ipsec *ipsec, __be32 *daddr, u8 proto, __be32 spi, bool ip4) argument 567 struct ixgbe_ipsec *ipsec = adapter->ipsec; local 761 struct ixgbe_ipsec *ipsec = adapter->ipsec; local 853 struct ixgbe_ipsec *ipsec = adapter->ipsec; local 892 struct ixgbe_ipsec *ipsec = adapter->ipsec; local 1002 struct ixgbe_ipsec *ipsec = adapter->ipsec; local 1077 struct ixgbe_ipsec *ipsec = adapter->ipsec; local 1170 struct ixgbe_ipsec *ipsec = adapter->ipsec; local 1235 struct ixgbe_ipsec *ipsec; local 1298 struct ixgbe_ipsec *ipsec = adapter->ipsec; local [all...] |
H A D | ixgbe.h | 821 struct ixgbe_ipsec *ipsec; member in struct:ixgbe_adapter
|
/linux-master/drivers/net/ethernet/netronome/nfp/ |
H A D | Makefile | 83 nfp-$(CONFIG_NFP_NET_IPSEC) += crypto/ipsec.o nfd3/ipsec.o nfdk/ipsec.o
|
/linux-master/drivers/net/ethernet/netronome/nfp/nfd3/ |
H A D | dp.c | 175 u64 tls_handle, bool *ipsec) 186 *ipsec = nfp_net_ipsec_tx_prep(dp, skb, &offload_info); 194 if (!(md_dst || tls_handle || vlan_insert || *ipsec)) 201 (*ipsec ? NFP_NET_META_IPSEC_FIELD_SIZE : 0); 231 if (*ipsec) { 269 bool ipsec = false; local 297 md_bytes = nfp_nfd3_prep_tx_meta(dp, skb, tls_handle, &ipsec); 330 if (ipsec) 174 nfp_nfd3_prep_tx_meta(struct nfp_net_dp *dp, struct sk_buff *skb, u64 tls_handle, bool *ipsec) argument
|
/linux-master/drivers/net/ethernet/netronome/nfp/nfdk/ |
H A D | dp.c | 179 struct sk_buff *skb, bool *ipsec) 190 *ipsec = nfp_net_ipsec_tx_prep(dp, skb, &offload_info); 198 if (!(md_dst || vlan_insert || *ipsec)) 204 (*ipsec ? NFP_NET_META_IPSEC_FIELD_SIZE : 0); 226 if (*ipsec) { 268 bool ipsec = false; local 289 metadata = nfp_nfdk_prep_tx_meta(dp, nn->app, skb, &ipsec); 387 if (ipsec) 393 if (!ipsec) 402 if (!ipsec) 178 nfp_nfdk_prep_tx_meta(struct nfp_net_dp *dp, struct nfp_app *app, struct sk_buff *skb, bool *ipsec) argument [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | Makefile | 72 esw/devlink_port.o esw/vporttbl.o esw/qos.o esw/ipsec.o 104 mlx5_core-$(CONFIG_MLX5_EN_IPSEC) += en_accel/ipsec.o en_accel/ipsec_rxtx.o \
|
/linux-master/drivers/net/bonding/ |
H A D | bond_main.c | 430 struct bond_ipsec *ipsec; local 449 NL_SET_ERR_MSG_MOD(extack, "Slave does not support ipsec offload"); 454 ipsec = kmalloc(sizeof(*ipsec), GFP_ATOMIC); 455 if (!ipsec) { 463 ipsec->xs = xs; 464 INIT_LIST_HEAD(&ipsec->list); 466 list_add(&ipsec->list, &bond->ipsec_list); 469 kfree(ipsec); 478 struct bond_ipsec *ipsec; local 518 struct bond_ipsec *ipsec; local 561 struct bond_ipsec *ipsec; local [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | Makefile | 66 TEST_GEN_FILES += ipsec
|
H A D | xfrm_policy.sh | 10 # ns3 and ns4 are connected via ipsec tunnel. 12 # ns1: ping 10.0.2.2: passes via ipsec tunnel. 13 # ns2: ping 10.0.1.2: passes via ipsec tunnel. 15 # ns1: ping 10.0.1.253: passes via ipsec tunnel (direct policy) 16 # ns2: ping 10.0.2.253: passes via ipsec tunnel (direct policy) 18 # ns1: ping 10.0.2.254: does NOT pass via ipsec tunnel (exception) 19 # ns2: ping 10.0.1.254: does NOT pass via ipsec tunnel (exception) 242 echo "PASS: ping to .254 bypassed ipsec tunnel ($logpostfix)" 245 # ping to .253 should use use ipsec due to direct policy exception. 248 echo "FAIL: expected ping to .253 to use ipsec tunne [all...] |
/linux-master/net/sched/ |
H A D | cls_flower.c | 75 struct flow_dissector_key_ipsec ipsec; member in struct:fl_flow_key 813 fl_set_key_val(tb, &key->ipsec.spi, 815 &mask->ipsec.spi, TCA_FLOWER_KEY_SPI_MASK, 816 sizeof(key->ipsec.spi)); 2098 FLOW_DISSECTOR_KEY_IPSEC, ipsec); 3422 if (key->ipsec.spi && 3423 fl_dump_key_val(skb, &key->ipsec.spi, TCA_FLOWER_KEY_SPI, 3424 &mask->ipsec.spi, TCA_FLOWER_KEY_SPI_MASK, 3425 sizeof(key->ipsec.spi)))
|