Searched refs:pol_entry (Results 1 – 3 of 3) sorted by relevance
1115 mlx5e_ipsec_build_accel_pol_attrs(struct mlx5e_ipsec_pol_entry *pol_entry, in mlx5e_ipsec_build_accel_pol_attrs() argument1118 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() local1157 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 …]
1791 static int tx_add_policy(struct mlx5e_ipsec_pol_entry *pol_entry) in tx_add_policy() argument1793 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() argument1877 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 …]
313 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() argument349 return pol_entry->ipsec->mdev; in mlx5e_ipsec_pol2dev()