| /Linux-v5.10/include/net/ |
| D | dst_metadata.h | 97 struct metadata_dst *tun_dst; in tun_rx_dst() local 99 tun_dst = metadata_dst_alloc(md_size, METADATA_IP_TUNNEL, GFP_ATOMIC); in tun_rx_dst() 100 if (!tun_dst) in tun_rx_dst() 103 tun_dst->u.tun_info.options_len = 0; in tun_rx_dst() 104 tun_dst->u.tun_info.mode = 0; in tun_rx_dst() 105 return tun_dst; in tun_rx_dst() 149 struct metadata_dst *tun_dst; in __ip_tun_set_dst() local 151 tun_dst = tun_rx_dst(md_size); in __ip_tun_set_dst() 152 if (!tun_dst) in __ip_tun_set_dst() 155 ip_tunnel_key_init(&tun_dst->u.tun_info.key, in __ip_tun_set_dst() [all …]
|
| D | ip6_tunnel.h | 140 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
|
| D | ip_tunnels.h | 285 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
|
| /Linux-v5.10/net/ipv4/ |
| D | udp_tunnel_core.c | 205 struct metadata_dst *tun_dst; in udp_tun_rx_dst() local 209 tun_dst = ip_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst() 211 tun_dst = ipv6_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst() 212 if (!tun_dst) in udp_tun_rx_dst() 215 info = &tun_dst->u.tun_info; in udp_tun_rx_dst() 220 return tun_dst; in udp_tun_rx_dst()
|
| D | ipip.c | 216 struct metadata_dst *tun_dst = NULL; in ipip_tunnel_rcv() local 241 tun_dst = ip_tun_rx_dst(skb, 0, 0, 0); in ipip_tunnel_rcv() 242 if (!tun_dst) in ipip_tunnel_rcv() 245 return ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ipip_tunnel_rcv()
|
| D | ip_gre.c | 264 struct metadata_dst *tun_dst = NULL; in erspan_rcv() local 314 tun_dst = ip_tun_rx_dst(skb, flags, in erspan_rcv() 316 if (!tun_dst) in erspan_rcv() 327 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in erspan_rcv() 333 info = &tun_dst->u.tun_info; in erspan_rcv() 339 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in erspan_rcv() 352 struct metadata_dst *tun_dst = NULL; in __ipgre_rcv() local 379 tun_dst = ip_tun_rx_dst(skb, flags, tun_id, 0); in __ipgre_rcv() 380 if (!tun_dst) in __ipgre_rcv() 384 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in __ipgre_rcv()
|
| D | ip_tunnel.c | 360 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, in ip_tunnel_rcv() argument 414 if (tun_dst) in ip_tunnel_rcv() 415 skb_dst_set(skb, (struct dst_entry *)tun_dst); in ip_tunnel_rcv() 421 if (tun_dst) in ip_tunnel_rcv() 422 dst_release((struct dst_entry *)tun_dst); in ip_tunnel_rcv()
|
| /Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
| D | tc.c | 523 struct metadata_dst *tun_dst; in mlx5e_restore_tunnel() local 559 tun_dst = __ip_tun_set_dst(key.enc_ipv4.src, key.enc_ipv4.dst, in mlx5e_restore_tunnel() 565 tun_dst = __ipv6_tun_set_dst(&key.enc_ipv6.src, &key.enc_ipv6.dst, in mlx5e_restore_tunnel() 577 if (!tun_dst) { in mlx5e_restore_tunnel() 582 tun_dst->u.tun_info.key.tp_src = key.enc_tp.src; in mlx5e_restore_tunnel() 585 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in mlx5e_restore_tunnel() 590 skb_dst_set(skb, (struct dst_entry *)tun_dst); in mlx5e_restore_tunnel()
|
| /Linux-v5.10/net/ipv6/ |
| D | ip6_tunnel.c | 827 struct metadata_dst *tun_dst, in __ip6_tnl_rcv() argument 900 if (tun_dst) in __ip6_tnl_rcv() 901 skb_dst_set(skb, (struct dst_entry *)tun_dst); in __ip6_tnl_rcv() 907 if (tun_dst) in __ip6_tnl_rcv() 908 dst_release((struct dst_entry *)tun_dst); in __ip6_tnl_rcv() 915 struct metadata_dst *tun_dst, in ip6_tnl_rcv() argument 926 return __ip6_tnl_rcv(t, skb, tpi, tun_dst, dscp_ecn_decapsulate, in ip6_tnl_rcv() 954 struct metadata_dst *tun_dst = NULL; in ipxip6_rcv() local 973 tun_dst = ipv6_tun_rx_dst(skb, 0, 0, 0); in ipxip6_rcv() 974 if (!tun_dst) in ipxip6_rcv() [all …]
|
| D | ip6_gre.c | 505 struct metadata_dst *tun_dst; in ip6gre_rcv() local 512 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, 0); in ip6gre_rcv() 513 if (!tun_dst) in ip6gre_rcv() 516 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6gre_rcv() 557 struct metadata_dst *tun_dst; in ip6erspan_rcv() local 567 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, in ip6erspan_rcv() 569 if (!tun_dst) in ip6erspan_rcv() 580 info = &tun_dst->u.tun_info; in ip6erspan_rcv() 589 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6erspan_rcv()
|
| /Linux-v5.10/drivers/net/ |
| D | bareudp.c | 56 struct metadata_dst *tun_dst = NULL; in bareudp_udp_encap_recv() local 127 tun_dst = udp_tun_rx_dst(skb, family, TUNNEL_KEY, 0, 0); in bareudp_udp_encap_recv() 128 if (!tun_dst) { in bareudp_udp_encap_recv() 132 skb_dst_set(skb, &tun_dst->dst); in bareudp_udp_encap_recv()
|
| D | geneve.c | 219 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()
|
| D | vxlan.c | 1715 struct metadata_dst *tun_dst; in vxlan_parse_gbp_hdr() local 1722 tun_dst = (struct metadata_dst *)skb_dst(skb); in vxlan_parse_gbp_hdr() 1723 if (tun_dst) { in vxlan_parse_gbp_hdr() 1724 tun_dst->u.tun_info.key.tun_flags |= TUNNEL_VXLAN_OPT; in vxlan_parse_gbp_hdr() 1725 tun_dst->u.tun_info.options_len = sizeof(*md); in vxlan_parse_gbp_hdr() 1883 struct metadata_dst *tun_dst; in vxlan_rcv() local 1885 tun_dst = udp_tun_rx_dst(skb, vxlan_get_sk_family(vs), TUNNEL_KEY, in vxlan_rcv() 1888 if (!tun_dst) in vxlan_rcv() 1891 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in vxlan_rcv() 1893 skb_dst_set(skb, (struct dst_entry *)tun_dst); in vxlan_rcv()
|
| /Linux-v5.10/net/openvswitch/ |
| D | flow.h | 45 struct metadata_dst *tun_dst; member
|
| D | flow_netlink.c | 2299 dst_release((struct dst_entry *)ovs_tun->tun_dst); in ovs_nla_free_set_action() 2631 struct metadata_dst *tun_dst; in validate_and_copy_set_tun() local 2665 tun_dst = metadata_dst_alloc(key.tun_opts_len, METADATA_IP_TUNNEL, in validate_and_copy_set_tun() 2668 if (!tun_dst) in validate_and_copy_set_tun() 2671 err = dst_cache_init(&tun_dst->u.tun_info.dst_cache, GFP_KERNEL); in validate_and_copy_set_tun() 2673 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun() 2680 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun() 2685 ovs_tun->tun_dst = tun_dst; in validate_and_copy_set_tun() 2687 tun_info = &tun_dst->u.tun_info; in validate_and_copy_set_tun() 3553 struct ip_tunnel_info *tun_info = &ovs_tun->tun_dst->u.tun_info; in set_action_to_attr()
|
| D | actions.c | 1053 dst_hold((struct dst_entry *)tun->tun_dst); in execute_set_action() 1054 skb_dst_set(skb, (struct dst_entry *)tun->tun_dst); in execute_set_action()
|