Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Den_accel.h57 struct mlx5e_swp_spec swp_spec = {}; in mlx5e_tx_tunnel_accel() local
77 swp_spec.l3_proto = l3_proto; in mlx5e_tx_tunnel_accel()
78 swp_spec.l4_proto = l4_proto; in mlx5e_tx_tunnel_accel()
79 swp_spec.is_tun = true; in mlx5e_tx_tunnel_accel()
81 swp_spec.tun_l3_proto = htons(ETH_P_IPV6); in mlx5e_tx_tunnel_accel()
82 swp_spec.tun_l4_proto = inner_ipv6_hdr(skb)->nexthdr; in mlx5e_tx_tunnel_accel()
84 swp_spec.tun_l3_proto = htons(ETH_P_IP); in mlx5e_tx_tunnel_accel()
85 swp_spec.tun_l4_proto = inner_ip_hdr(skb)->protocol; in mlx5e_tx_tunnel_accel()
88 mlx5e_set_eseg_swp(skb, eseg, &swp_spec); in mlx5e_tx_tunnel_accel()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtxrx.h453 struct mlx5e_swp_spec *swp_spec) in mlx5e_set_eseg_swp() argument
457 if (swp_spec->l3_proto == htons(ETH_P_IPV6)) in mlx5e_set_eseg_swp()
459 if (swp_spec->l4_proto) { in mlx5e_set_eseg_swp()
461 if (swp_spec->l4_proto == IPPROTO_UDP) in mlx5e_set_eseg_swp()
465 if (swp_spec->is_tun) { in mlx5e_set_eseg_swp()
467 if (swp_spec->tun_l3_proto == htons(ETH_P_IPV6)) in mlx5e_set_eseg_swp()
471 if (swp_spec->l3_proto == htons(ETH_P_IPV6)) in mlx5e_set_eseg_swp()
474 switch (swp_spec->tun_l4_proto) { in mlx5e_set_eseg_swp()