Searched refs:pol_entry (Results 1 – 3 of 3) sorted by relevance
1067 mlx5e_ipsec_build_accel_pol_attrs(struct mlx5e_ipsec_pol_entry *pol_entry, in mlx5e_ipsec_build_accel_pol_attrs() argument1070 struct xfrm_policy *x = pol_entry->x; in mlx5e_ipsec_build_accel_pol_attrs()1095 struct mlx5e_ipsec_pol_entry *pol_entry; in mlx5e_xfrm_add_policy() local1109 pol_entry = kzalloc(sizeof(*pol_entry), GFP_KERNEL); in mlx5e_xfrm_add_policy()1110 if (!pol_entry) in mlx5e_xfrm_add_policy()1113 pol_entry->x = x; in mlx5e_xfrm_add_policy()1114 pol_entry->ipsec = priv->ipsec; in mlx5e_xfrm_add_policy()1121 mlx5e_ipsec_build_accel_pol_attrs(pol_entry, &pol_entry->attrs); in mlx5e_xfrm_add_policy()1122 err = mlx5e_accel_ipsec_fs_add_pol(pol_entry); in mlx5e_xfrm_add_policy()1126 x->xdo.offload_handle = (unsigned long)pol_entry; in mlx5e_xfrm_add_policy()[all …]
1515 static int tx_add_policy(struct mlx5e_ipsec_pol_entry *pol_entry) in tx_add_policy() argument1517 struct mlx5_accel_pol_xfrm_attrs *attrs = &pol_entry->attrs; in tx_add_policy()1518 struct mlx5_core_dev *mdev = mlx5e_ipsec_pol2dev(pol_entry); in tx_add_policy()1519 struct mlx5e_ipsec *ipsec = pol_entry->ipsec; in tx_add_policy()1585 pol_entry->ipsec_rule.rule = rule; in tx_add_policy()1586 pol_entry->ipsec_rule.modify_hdr = flow_act.modify_hdr; in tx_add_policy()1599 static int rx_add_policy(struct mlx5e_ipsec_pol_entry *pol_entry) in rx_add_policy() argument1601 struct mlx5_accel_pol_xfrm_attrs *attrs = &pol_entry->attrs; in rx_add_policy()1602 struct mlx5_core_dev *mdev = mlx5e_ipsec_pol2dev(pol_entry); in rx_add_policy()1603 struct mlx5e_ipsec *ipsec = pol_entry->ipsec; in rx_add_policy()[all …]
308 int mlx5e_accel_ipsec_fs_add_pol(struct mlx5e_ipsec_pol_entry *pol_entry);309 void mlx5e_accel_ipsec_fs_del_pol(struct mlx5e_ipsec_pol_entry *pol_entry);338 mlx5e_ipsec_pol2dev(struct mlx5e_ipsec_pol_entry *pol_entry) in mlx5e_ipsec_pol2dev() argument340 return pol_entry->ipsec->mdev; in mlx5e_ipsec_pol2dev()