Home
last modified time | relevance | path

Searched refs:pol_entry (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c1115 mlx5e_ipsec_build_accel_pol_attrs(struct mlx5e_ipsec_pol_entry *pol_entry, in mlx5e_ipsec_build_accel_pol_attrs() argument
1118 struct xfrm_policy *x = pol_entry->x; in mlx5e_ipsec_build_accel_pol_attrs()
1143 struct mlx5e_ipsec_pol_entry *pol_entry; in mlx5e_xfrm_add_policy() local
1157 pol_entry = kzalloc(sizeof(*pol_entry), GFP_KERNEL); in mlx5e_xfrm_add_policy()
1158 if (!pol_entry) in mlx5e_xfrm_add_policy()
1161 pol_entry->x = x; in mlx5e_xfrm_add_policy()
1162 pol_entry->ipsec = priv->ipsec; in mlx5e_xfrm_add_policy()
1169 mlx5e_ipsec_build_accel_pol_attrs(pol_entry, &pol_entry->attrs); in mlx5e_xfrm_add_policy()
1170 err = mlx5e_accel_ipsec_fs_add_pol(pol_entry); in mlx5e_xfrm_add_policy()
1174 x->xdo.offload_handle = (unsigned long)pol_entry; in mlx5e_xfrm_add_policy()
[all …]
Dipsec_fs.c1791 static int tx_add_policy(struct mlx5e_ipsec_pol_entry *pol_entry) in tx_add_policy() argument
1793 struct mlx5_accel_pol_xfrm_attrs *attrs = &pol_entry->attrs; in tx_add_policy()
1794 struct mlx5_core_dev *mdev = mlx5e_ipsec_pol2dev(pol_entry); in tx_add_policy()
1795 struct mlx5e_ipsec *ipsec = pol_entry->ipsec; in tx_add_policy()
1861 pol_entry->ipsec_rule.rule = rule; in tx_add_policy()
1862 pol_entry->ipsec_rule.modify_hdr = flow_act.modify_hdr; in tx_add_policy()
1875 static int rx_add_policy(struct mlx5e_ipsec_pol_entry *pol_entry) in rx_add_policy() argument
1877 struct mlx5_accel_pol_xfrm_attrs *attrs = &pol_entry->attrs; in rx_add_policy()
1878 struct mlx5_core_dev *mdev = mlx5e_ipsec_pol2dev(pol_entry); in rx_add_policy()
1879 struct mlx5e_ipsec *ipsec = pol_entry->ipsec; in rx_add_policy()
[all …]
Dipsec.h313 int mlx5e_accel_ipsec_fs_add_pol(struct mlx5e_ipsec_pol_entry *pol_entry);
314 void mlx5e_accel_ipsec_fs_del_pol(struct mlx5e_ipsec_pol_entry *pol_entry);
347 mlx5e_ipsec_pol2dev(struct mlx5e_ipsec_pol_entry *pol_entry) in mlx5e_ipsec_pol2dev() argument
349 return pol_entry->ipsec->mdev; in mlx5e_ipsec_pol2dev()