| /linux/include/net/ |
| H A D | dst_metadata.h | 142 struct metadata_dst *tun_dst; in tun_rx_dst() local 144 tun_dst = metadata_dst_alloc(md_size, METADATA_IP_TUNNEL, GFP_ATOMIC); in tun_rx_dst() 145 if (!tun_dst) in tun_rx_dst() 148 tun_dst->u.tun_info.options_len = 0; in tun_rx_dst() 149 tun_dst->u.tun_info.mode = 0; in tun_rx_dst() 150 return tun_dst; in tun_rx_dst() 206 struct metadata_dst *tun_dst; in __ip_tun_set_dst() local 208 tun_dst = tun_rx_dst(md_size); in __ip_tun_set_dst() 209 if (!tun_dst) in __ip_tun_set_dst() 212 ip_tunnel_key_init(&tun_dst->u.tun_info.key, in __ip_tun_set_dst() [all …]
|
| H A D | ip6_tunnel.h | 141 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
|
| H A D | ip_tunnels.h | 425 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
|
| /linux/net/ipv4/ |
| H A D | ipip.c | 220 struct metadata_dst *tun_dst = NULL; in ipip_tunnel_rcv() local 249 tun_dst = ip_tun_rx_dst(skb, flags, 0, 0); in ipip_tunnel_rcv() 250 if (!tun_dst) in ipip_tunnel_rcv() 252 ip_tunnel_md_udp_encap(skb, &tun_dst->u.tun_info); in ipip_tunnel_rcv() 256 return ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ipip_tunnel_rcv()
|
| H A D | ip_gre.c | 271 struct metadata_dst *tun_dst = NULL; in erspan_rcv() local 328 tun_dst = ip_tun_rx_dst(skb, flags, in erspan_rcv() 330 if (!tun_dst) in erspan_rcv() 334 info = &tun_dst->u.tun_info; in erspan_rcv() 345 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in erspan_rcv() 356 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in erspan_rcv() 369 struct metadata_dst *tun_dst = NULL; in __ipgre_rcv() local 402 tun_dst = ip_tun_rx_dst(skb, flags, tun_id, 0); in __ipgre_rcv() 403 if (!tun_dst) in __ipgre_rcv() 407 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in __ipgre_rcv()
|
| H A D | ip_tunnel.c | 378 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, in ip_tunnel_rcv() argument 445 if (tun_dst) in ip_tunnel_rcv() 446 skb_dst_set(skb, (struct dst_entry *)tun_dst); in ip_tunnel_rcv() 452 if (tun_dst) in ip_tunnel_rcv() 453 dst_release((struct dst_entry *)tun_dst); in ip_tunnel_rcv()
|
| /linux/net/netfilter/ |
| H A D | nf_flow_table_path.c | 211 struct dst_entry *tun_dst = NULL; in nft_flow_tunnel_update_route() 233 nf_route(nft_net(pkt), &tun_dst, &fl, false, nft_pf(pkt)); in nft_flow_tunnel_update_route() 234 if (!tun_dst) in nft_flow_tunnel_update_route() 237 route->tuple[dir].dst = tun_dst; in nft_flow_tunnel_update_route() 207 struct dst_entry *tun_dst = NULL; nft_flow_tunnel_update_route() local
|
| /linux/net/ipv6/ |
| H A D | ip6_tunnel.c | 807 struct metadata_dst *tun_dst, in __ip6_tnl_rcv() 889 if (tun_dst) in __ip6_tnl_rcv() 890 skb_dst_set(skb, (struct dst_entry *)tun_dst); in __ip6_tnl_rcv() 896 if (tun_dst) in __ip6_tnl_rcv() 897 dst_release((struct dst_entry *)tun_dst); 904 struct metadata_dst *tun_dst, in ip6_tnl_rcv() 915 return __ip6_tnl_rcv(t, skb, tpi, tun_dst, dscp_ecn_decapsulate, 943 struct metadata_dst *tun_dst = NULL; in ipxip6_rcv() 964 tun_dst = ipv6_tun_rx_dst(skb, flags, 0, 0); in ipxip6_rcv() 965 if (!tun_dst) in ipxip6_rcv() 803 __ip6_tnl_rcv(struct ip6_tnl * tunnel,struct sk_buff * skb,const struct tnl_ptk_info * tpi,struct metadata_dst * tun_dst,int (* dscp_ecn_decapsulate)(const struct ip6_tnl * t,const struct ipv6hdr * ipv6h,struct sk_buff * skb),bool log_ecn_err) __ip6_tnl_rcv() argument 900 ip6_tnl_rcv(struct ip6_tnl * t,struct sk_buff * skb,const struct tnl_ptk_info * tpi,struct metadata_dst * tun_dst,bool log_ecn_err) ip6_tnl_rcv() argument 939 struct metadata_dst *tun_dst = NULL; ipxip6_rcv() local [all...] |
| /linux/net/openvswitch/ |
| H A D | flow_netlink.c | 2359 dst_release((struct dst_entry *)ovs_tun->tun_dst); in ovs_nla_free_set_action() 2730 struct metadata_dst *tun_dst; in validate_and_copy_set_tun() local 2763 tun_dst = metadata_dst_alloc(key.tun_opts_len, METADATA_IP_TUNNEL, in validate_and_copy_set_tun() 2766 if (!tun_dst) in validate_and_copy_set_tun() 2769 err = dst_cache_init(&tun_dst->u.tun_info.dst_cache, GFP_KERNEL); in validate_and_copy_set_tun() 2771 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun() 2778 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun() 2783 ovs_tun->tun_dst = tun_dst; in validate_and_copy_set_tun() 2785 tun_info = &tun_dst->u.tun_info; in validate_and_copy_set_tun() 3699 struct ip_tunnel_info *tun_info = &ovs_tun->tun_dst->u.tun_info; in set_action_to_attr()
|
| H A D | flow.h | 58 struct metadata_dst *tun_dst; member
|
| H A D | actions.c | 1032 dst_hold((struct dst_entry *)tun->tun_dst); in execute_set_action() 1033 skb_dst_set(skb, (struct dst_entry *)tun->tun_dst); in execute_set_action()
|
| /linux/drivers/net/vxlan/ |
| H A D | vxlan_core.c | 1560 struct metadata_dst *tun_dst; in vxlan_parse_gbp_hdr() local 1569 tun_dst = (struct metadata_dst *)skb_dst(skb); in vxlan_parse_gbp_hdr() 1570 if (tun_dst) { in vxlan_parse_gbp_hdr() 1572 tun_dst->u.tun_info.key.tun_flags); in vxlan_parse_gbp_hdr() 1573 tun_dst->u.tun_info.options_len = sizeof(*md); in vxlan_parse_gbp_hdr() 1723 struct metadata_dst *tun_dst; in vxlan_rcv() local 1726 tun_dst = udp_tun_rx_dst(skb, vxlan_get_sk_family(vs), flags, in vxlan_rcv() 1729 if (!tun_dst) { in vxlan_rcv() 1734 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in vxlan_rcv() 1736 skb_dst_set(skb, (struct dst_entry *)tun_dst); in vxlan_rcv()
|