Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Den_accel.h53 struct mlx5e_swp_spec swp_spec = {}; in mlx5e_tx_tunnel_accel() local
73 swp_spec.l3_proto = l3_proto; in mlx5e_tx_tunnel_accel()
74 swp_spec.l4_proto = l4_proto; in mlx5e_tx_tunnel_accel()
75 swp_spec.is_tun = true; in mlx5e_tx_tunnel_accel()
77 swp_spec.tun_l3_proto = htons(ETH_P_IPV6); in mlx5e_tx_tunnel_accel()
78 swp_spec.tun_l4_proto = inner_ipv6_hdr(skb)->nexthdr; in mlx5e_tx_tunnel_accel()
80 swp_spec.tun_l3_proto = htons(ETH_P_IP); in mlx5e_tx_tunnel_accel()
81 swp_spec.tun_l4_proto = inner_ip_hdr(skb)->protocol; in mlx5e_tx_tunnel_accel()
84 mlx5e_set_eseg_swp(skb, eseg, &swp_spec); in mlx5e_tx_tunnel_accel()
Dipsec_rxtx.c139 struct mlx5e_swp_spec swp_spec = {}; in mlx5e_ipsec_set_swp() local
150 swp_spec.l3_proto = skb->protocol; in mlx5e_ipsec_set_swp()
151 swp_spec.is_tun = mode == XFRM_MODE_TUNNEL; in mlx5e_ipsec_set_swp()
152 if (swp_spec.is_tun) { in mlx5e_ipsec_set_swp()
154 swp_spec.tun_l3_proto = htons(ETH_P_IPV6); in mlx5e_ipsec_set_swp()
155 swp_spec.tun_l4_proto = inner_ipv6_hdr(skb)->nexthdr; in mlx5e_ipsec_set_swp()
157 swp_spec.tun_l3_proto = htons(ETH_P_IP); in mlx5e_ipsec_set_swp()
158 swp_spec.tun_l4_proto = inner_ip_hdr(skb)->protocol; in mlx5e_ipsec_set_swp()
161 swp_spec.tun_l3_proto = skb->protocol; in mlx5e_ipsec_set_swp()
162 swp_spec.tun_l4_proto = xo->proto; in mlx5e_ipsec_set_swp()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtxrx.h194 struct mlx5e_swp_spec *swp_spec) in mlx5e_set_eseg_swp() argument
198 if (swp_spec->l3_proto == htons(ETH_P_IPV6)) in mlx5e_set_eseg_swp()
200 if (swp_spec->l4_proto) { in mlx5e_set_eseg_swp()
202 if (swp_spec->l4_proto == IPPROTO_UDP) in mlx5e_set_eseg_swp()
206 if (swp_spec->is_tun) { in mlx5e_set_eseg_swp()
208 if (swp_spec->tun_l3_proto == htons(ETH_P_IPV6)) in mlx5e_set_eseg_swp()
212 if (swp_spec->l3_proto == htons(ETH_P_IPV6)) in mlx5e_set_eseg_swp()
215 switch (swp_spec->tun_l4_proto) { in mlx5e_set_eseg_swp()