Lines Matching refs:family

52 static enum mlx5_traffic_types family2tt(u32 family)
54 if (family == AF_INET)
59 static struct mlx5e_ipsec_rx *ipsec_rx(struct mlx5e_ipsec *ipsec, u32 family, int type)
64 if (family == AF_INET)
496 static void handle_ipsec_rx_bringup(struct mlx5e_ipsec *ipsec, u32 family)
498 struct mlx5e_ipsec_rx *rx = ipsec_rx(ipsec, family, XFRM_DEV_OFFLOAD_PACKET);
503 family2tt(family));
505 mlx5_ipsec_fs_roce_rx_create(ipsec->mdev, ipsec->roce, ns, &old_dest, family,
508 new_dest.ft = mlx5_ipsec_fs_roce_ft_get(ipsec->roce, family);
514 static void handle_ipsec_rx_cleanup(struct mlx5e_ipsec *ipsec, u32 family)
516 struct mlx5e_ipsec_rx *rx = ipsec_rx(ipsec, family, XFRM_DEV_OFFLOAD_PACKET);
519 old_dest.ft = mlx5_ipsec_fs_roce_ft_get(ipsec->roce, family);
522 family2tt(family));
526 mlx5_ipsec_fs_roce_rx_destroy(ipsec->roce, family, ipsec->mdev);
573 static void ipsec_rx_ft_disconnect(struct mlx5e_ipsec *ipsec, u32 family)
577 mlx5_ttc_fwd_default_dest(ttc, family2tt(family));
581 struct mlx5e_ipsec_rx *rx, u32 family)
585 ipsec_rx_ft_disconnect(ipsec, family);
603 mlx5_ipsec_fs_roce_rx_destroy(ipsec->roce, family, mdev);
608 u32 family,
620 attr->family = family;
639 *dest = mlx5_ttc_get_default_dest(attr->ttc, family2tt(attr->family));
641 attr->family, MLX5E_ACCEL_FS_ESP_FT_ROCE_LEVEL,
646 ft = mlx5_ipsec_fs_roce_ft_get(ipsec->roce, attr->family);
663 mlx5_ttc_fwd_dest(attr->ttc, family2tt(attr->family), &dest);
667 struct mlx5e_ipsec_rx *rx, u32 family)
675 ipsec_rx_create_attr_set(ipsec, rx, family, &attr);
758 mlx5_ipsec_fs_roce_rx_destroy(ipsec->roce, family, mdev);
763 struct mlx5e_ipsec_rx *rx, u32 family)
774 err = rx_create(mdev, ipsec, rx, family);
786 u32 family)
791 rx_destroy(ipsec->mdev, ipsec, rx, family);
796 struct mlx5e_ipsec *ipsec, u32 family,
799 struct mlx5e_ipsec_rx *rx = ipsec_rx(ipsec, family, type);
803 err = rx_get(mdev, ipsec, rx, family);
813 u32 family, u32 prio, int type)
815 struct mlx5e_ipsec_rx *rx = ipsec_rx(ipsec, family, type);
820 err = rx_get(mdev, ipsec, rx, family);
834 rx_put(ipsec, rx, family);
840 static void rx_ft_put(struct mlx5e_ipsec *ipsec, u32 family, int type)
842 struct mlx5e_ipsec_rx *rx = ipsec_rx(ipsec, family, type);
845 rx_put(ipsec, rx, family);
849 static void rx_ft_put_policy(struct mlx5e_ipsec *ipsec, u32 family, u32 prio, int type)
851 struct mlx5e_ipsec_rx *rx = ipsec_rx(ipsec, family, type);
857 rx_put(ipsec, rx, family);
1391 switch (attrs->family) {
1408 switch (attrs->family) {
1431 switch (attrs->family) {
1479 if (attrs->family == AF_INET) {
1593 rx = rx_ft_get(mdev, ipsec, attrs->family, attrs->type);
1603 if (attrs->family == AF_INET)
1695 rx_ft_put(ipsec, attrs->family, attrs->type);
1722 if (attrs->family == AF_INET)
1816 if (attrs->family == AF_INET)
1889 ft = rx_ft_get_policy(mdev, pol_entry->ipsec, attrs->family, attrs->prio,
1894 rx = ipsec_rx(pol_entry->ipsec, attrs->family, attrs->type);
1902 if (attrs->family == AF_INET)
1946 rx_ft_put_policy(pol_entry->ipsec, attrs->family, attrs->prio, attrs->type);
2206 rx_ft_put(sa_entry->ipsec, sa_entry->attrs.family, sa_entry->attrs.type);
2242 rx_ft_put_policy(pol_entry->ipsec, pol_entry->attrs.family,
2382 rx = ipsec_rx(sa_entry->ipsec, attrs->family, attrs->type);