Home
last modified time | relevance | path

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

/Linux-v4.19/include/net/
Ddst_metadata.h97 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 …]
Dip6_tunnel.h138 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
Dip_tunnels.h302 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
/Linux-v4.19/net/ipv4/
Dudp_tunnel.c197 struct metadata_dst *tun_dst; in udp_tun_rx_dst() local
201 tun_dst = ip_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst()
203 tun_dst = ipv6_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst()
204 if (!tun_dst) in udp_tun_rx_dst()
207 info = &tun_dst->u.tun_info; in udp_tun_rx_dst()
212 return tun_dst; in udp_tun_rx_dst()
Dipip.c222 struct metadata_dst *tun_dst = NULL; in ipip_tunnel_rcv() local
247 tun_dst = ip_tun_rx_dst(skb, 0, 0, 0); in ipip_tunnel_rcv()
248 if (!tun_dst) in ipip_tunnel_rcv()
251 return ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ipip_tunnel_rcv()
Dip_gre.c261 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()
319 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in erspan_rcv()
325 info = &tun_dst->u.tun_info; in erspan_rcv()
331 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in erspan_rcv()
344 struct metadata_dst *tun_dst = NULL; in __ipgre_rcv() local
367 tun_dst = ip_tun_rx_dst(skb, flags, tun_id, 0); in __ipgre_rcv()
368 if (!tun_dst) in __ipgre_rcv()
372 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in __ipgre_rcv()
Dip_tunnel.c375 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, in ip_tunnel_rcv() argument
435 if (tun_dst) in ip_tunnel_rcv()
436 skb_dst_set(skb, (struct dst_entry *)tun_dst); in ip_tunnel_rcv()
442 if (tun_dst) in ip_tunnel_rcv()
443 dst_release((struct dst_entry *)tun_dst); in ip_tunnel_rcv()
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c421 __be32 tun_dst; in nfp_flower_compile_flow_match() local
427 tun_dst = ((struct nfp_flower_ipv4_udp_tun *)ext)->ip_dst; in nfp_flower_compile_flow_match()
439 nfp_flow->nfp_tun_ipv4_addr = tun_dst; in nfp_flower_compile_flow_match()
440 nfp_tunnel_add_ipv4_off(netdev_repr->app, tun_dst); in nfp_flower_compile_flow_match()
/Linux-v4.19/net/ipv6/
Dip6_tunnel.c777 struct metadata_dst *tun_dst, in __ip6_tnl_rcv() argument
850 if (tun_dst) in __ip6_tnl_rcv()
851 skb_dst_set(skb, (struct dst_entry *)tun_dst); in __ip6_tnl_rcv()
857 if (tun_dst) in __ip6_tnl_rcv()
858 dst_release((struct dst_entry *)tun_dst); in __ip6_tnl_rcv()
865 struct metadata_dst *tun_dst, in ip6_tnl_rcv() argument
868 return __ip6_tnl_rcv(t, skb, tpi, tun_dst, ip6ip6_dscp_ecn_decapsulate, in ip6_tnl_rcv()
891 struct metadata_dst *tun_dst = NULL; in ipxip6_rcv() local
909 tun_dst = ipv6_tun_rx_dst(skb, 0, 0, 0); in ipxip6_rcv()
910 if (!tun_dst) in ipxip6_rcv()
[all …]
Dip6_gre.c521 struct metadata_dst *tun_dst; in ip6gre_rcv() local
528 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, 0); in ip6gre_rcv()
529 if (!tun_dst) in ip6gre_rcv()
532 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6gre_rcv()
579 struct metadata_dst *tun_dst; in ip6erspan_rcv() local
589 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, in ip6erspan_rcv()
591 if (!tun_dst) in ip6erspan_rcv()
594 info = &tun_dst->u.tun_info; in ip6erspan_rcv()
603 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6erspan_rcv()
/Linux-v4.19/net/openvswitch/
Dflow_netlink.c2264 dst_release((struct dst_entry *)ovs_tun->tun_dst); in ovs_nla_free_set_action()
2548 struct metadata_dst *tun_dst; in validate_and_copy_set_tun() local
2582 tun_dst = metadata_dst_alloc(key.tun_opts_len, METADATA_IP_TUNNEL, in validate_and_copy_set_tun()
2585 if (!tun_dst) in validate_and_copy_set_tun()
2588 err = dst_cache_init(&tun_dst->u.tun_info.dst_cache, GFP_KERNEL); in validate_and_copy_set_tun()
2590 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun()
2597 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun()
2602 ovs_tun->tun_dst = tun_dst; in validate_and_copy_set_tun()
2604 tun_info = &tun_dst->u.tun_info; in validate_and_copy_set_tun()
3196 struct ip_tunnel_info *tun_info = &ovs_tun->tun_dst->u.tun_info; in set_action_to_attr()
Dflow.h58 struct metadata_dst *tun_dst; member
Dactions.c1106 dst_hold((struct dst_entry *)tun->tun_dst); in execute_set_action()
1107 skb_dst_set(skb, (struct dst_entry *)tun->tun_dst); in execute_set_action()
/Linux-v4.19/drivers/net/
Dgeneve.c217 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()
Dvxlan.c1253 struct metadata_dst *tun_dst; in vxlan_parse_gbp_hdr() local
1260 tun_dst = (struct metadata_dst *)skb_dst(skb); in vxlan_parse_gbp_hdr()
1261 if (tun_dst) { in vxlan_parse_gbp_hdr()
1262 tun_dst->u.tun_info.key.tun_flags |= TUNNEL_VXLAN_OPT; in vxlan_parse_gbp_hdr()
1263 tun_dst->u.tun_info.options_len = sizeof(*md); in vxlan_parse_gbp_hdr()
1418 struct metadata_dst *tun_dst; in vxlan_rcv() local
1420 tun_dst = udp_tun_rx_dst(skb, vxlan_get_sk_family(vs), TUNNEL_KEY, in vxlan_rcv()
1423 if (!tun_dst) in vxlan_rcv()
1426 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in vxlan_rcv()
1428 skb_dst_set(skb, (struct dst_entry *)tun_dst); in vxlan_rcv()