Lines Matching refs:pol_entry

1791 static int tx_add_policy(struct mlx5e_ipsec_pol_entry *pol_entry)
1793 struct mlx5_accel_pol_xfrm_attrs *attrs = &pol_entry->attrs;
1794 struct mlx5_core_dev *mdev = mlx5e_ipsec_pol2dev(pol_entry);
1795 struct mlx5e_ipsec *ipsec = pol_entry->ipsec;
1861 pol_entry->ipsec_rule.rule = rule;
1862 pol_entry->ipsec_rule.modify_hdr = flow_act.modify_hdr;
1875 static int rx_add_policy(struct mlx5e_ipsec_pol_entry *pol_entry)
1877 struct mlx5_accel_pol_xfrm_attrs *attrs = &pol_entry->attrs;
1878 struct mlx5_core_dev *mdev = mlx5e_ipsec_pol2dev(pol_entry);
1879 struct mlx5e_ipsec *ipsec = pol_entry->ipsec;
1888 ft = rx_ft_get_policy(mdev, pol_entry->ipsec, attrs->family, attrs->prio,
1893 rx = ipsec_rx(pol_entry->ipsec, attrs->family, attrs->type);
1939 pol_entry->ipsec_rule.rule = rule;
1945 rx_ft_put_policy(pol_entry->ipsec, attrs->family, attrs->prio, attrs->type);
2208 int mlx5e_accel_ipsec_fs_add_pol(struct mlx5e_ipsec_pol_entry *pol_entry)
2212 err = mlx5e_ipsec_block_tc_offload(pol_entry->ipsec->mdev);
2216 if (pol_entry->attrs.dir == XFRM_DEV_OFFLOAD_OUT)
2217 err = tx_add_policy(pol_entry);
2219 err = rx_add_policy(pol_entry);
2227 mlx5e_ipsec_unblock_tc_offload(pol_entry->ipsec->mdev);
2231 void mlx5e_accel_ipsec_fs_del_pol(struct mlx5e_ipsec_pol_entry *pol_entry)
2233 struct mlx5e_ipsec_rule *ipsec_rule = &pol_entry->ipsec_rule;
2234 struct mlx5_core_dev *mdev = mlx5e_ipsec_pol2dev(pol_entry);
2238 mlx5e_ipsec_unblock_tc_offload(pol_entry->ipsec->mdev);
2240 if (pol_entry->attrs.dir == XFRM_DEV_OFFLOAD_IN) {
2241 rx_ft_put_policy(pol_entry->ipsec, pol_entry->attrs.family,
2242 pol_entry->attrs.prio, pol_entry->attrs.type);
2249 tx_ft_put_policy(pol_entry->ipsec, pol_entry->attrs.prio, pol_entry->attrs.type);