Home
last modified time | relevance | path

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

/linux/include/net/
H A Ddst_metadata.h142 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 Dip6_tunnel.h141 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
H A Dip_tunnels.h418 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
/linux/net/ipv4/
H A Dipip.c220 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 Dip_gre.c271 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 Dip_tunnel.c378 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 Dnf_flow_table_path.c206 struct dst_entry *tun_dst = NULL; in nft_flow_tunnel_update_route() local
228 nf_route(nft_net(pkt), &tun_dst, &fl, false, nft_pf(pkt)); in nft_flow_tunnel_update_route()
229 if (!tun_dst) in nft_flow_tunnel_update_route()
232 route->tuple[dir].dst = tun_dst; in nft_flow_tunnel_update_route()
/linux/net/ipv6/
H A Dip6_tunnel.c795 struct metadata_dst *tun_dst, in __ip6_tnl_rcv() argument
877 if (tun_dst) in __ip6_tnl_rcv()
878 skb_dst_set(skb, (struct dst_entry *)tun_dst); in __ip6_tnl_rcv()
884 if (tun_dst) in __ip6_tnl_rcv()
885 dst_release((struct dst_entry *)tun_dst); in __ip6_tnl_rcv()
892 struct metadata_dst *tun_dst, in ip6_tnl_rcv() argument
903 return __ip6_tnl_rcv(t, skb, tpi, tun_dst, dscp_ecn_decapsulate, in ip6_tnl_rcv()
931 struct metadata_dst *tun_dst = NULL; in ipxip6_rcv() local
952 tun_dst = ipv6_tun_rx_dst(skb, flags, 0, 0); in ipxip6_rcv()
953 if (!tun_dst) in ipxip6_rcv()
[all …]
H A Dip6_gre.c469 struct metadata_dst *tun_dst; in ip6gre_rcv() local
475 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, 0); in ip6gre_rcv()
476 if (!tun_dst) in ip6gre_rcv()
479 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6gre_rcv()
524 struct metadata_dst *tun_dst; in ip6erspan_rcv() local
533 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, in ip6erspan_rcv()
535 if (!tun_dst) in ip6erspan_rcv()
539 info = &tun_dst->u.tun_info; in ip6erspan_rcv()
558 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6erspan_rcv()
/linux/drivers/net/
H A Dbareudp.c63 struct metadata_dst *tun_dst = NULL; in bareudp_udp_encap_recv() local
145 tun_dst = udp_tun_rx_dst(skb, family, key, 0, 0); in bareudp_udp_encap_recv()
146 if (!tun_dst) { in bareudp_udp_encap_recv()
150 skb_dst_set(skb, &tun_dst->dst); in bareudp_udp_encap_recv()
/linux/net/openvswitch/
H A Dflow.h58 struct metadata_dst *tun_dst; member
H A Dflow_netlink.c2359 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()
3697 struct ip_tunnel_info *tun_info = &ovs_tun->tun_dst->u.tun_info; in set_action_to_attr()
H A Dactions.c1031 dst_hold((struct dst_entry *)tun->tun_dst); in execute_set_action()
1032 skb_dst_set(skb, (struct dst_entry *)tun->tun_dst); in execute_set_action()