Home
last modified time | relevance | path

Searched refs:tun_dst (Results 1 – 4 of 4) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dtc.c520 struct metadata_dst *tun_dst; in mlx5e_restore_tunnel() local
556 tun_dst = __ip_tun_set_dst(key.enc_ipv4.src, key.enc_ipv4.dst, in mlx5e_restore_tunnel()
562 tun_dst = __ipv6_tun_set_dst(&key.enc_ipv6.src, &key.enc_ipv6.dst, in mlx5e_restore_tunnel()
574 if (!tun_dst) { in mlx5e_restore_tunnel()
579 tun_dst->u.tun_info.key.tp_src = key.enc_tp.src; in mlx5e_restore_tunnel()
582 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in mlx5e_restore_tunnel()
587 skb_dst_set(skb, (struct dst_entry *)tun_dst); in mlx5e_restore_tunnel()
/drivers/net/
Dbareudp.c56 struct metadata_dst *tun_dst = NULL; in bareudp_udp_encap_recv() local
133 tun_dst = udp_tun_rx_dst(skb, family, TUNNEL_KEY, 0, 0); in bareudp_udp_encap_recv()
134 if (!tun_dst) { in bareudp_udp_encap_recv()
138 skb_dst_set(skb, &tun_dst->dst); in bareudp_udp_encap_recv()
Dgeneve.c219 struct metadata_dst *tun_dst = NULL; in geneve_rx() local
230 tun_dst = udp_tun_rx_dst(skb, geneve_get_sk_family(gs), flags, in geneve_rx()
233 if (!tun_dst) { in geneve_rx()
238 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in geneve_rx()
256 if (tun_dst) in geneve_rx()
257 skb_dst_set(skb, &tun_dst->dst); in geneve_rx()
/drivers/net/vxlan/
Dvxlan_core.c1741 struct metadata_dst *tun_dst; in vxlan_parse_gbp_hdr() local
1748 tun_dst = (struct metadata_dst *)skb_dst(skb); in vxlan_parse_gbp_hdr()
1749 if (tun_dst) { in vxlan_parse_gbp_hdr()
1750 tun_dst->u.tun_info.key.tun_flags |= TUNNEL_VXLAN_OPT; in vxlan_parse_gbp_hdr()
1751 tun_dst->u.tun_info.options_len = sizeof(*md); in vxlan_parse_gbp_hdr()
1881 struct metadata_dst *tun_dst; in vxlan_rcv() local
1883 tun_dst = udp_tun_rx_dst(skb, vxlan_get_sk_family(vs), TUNNEL_KEY, in vxlan_rcv()
1886 if (!tun_dst) in vxlan_rcv()
1889 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in vxlan_rcv()
1891 skb_dst_set(skb, (struct dst_entry *)tun_dst); in vxlan_rcv()