Home
last modified time | relevance | path

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

/Linux-v5.4/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.h140 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
Dip_tunnels.h284 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
/Linux-v5.4/net/ipv4/
Dudp_tunnel.c207 struct metadata_dst *tun_dst; in udp_tun_rx_dst() local
211 tun_dst = ip_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst()
213 tun_dst = ipv6_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst()
214 if (!tun_dst) in udp_tun_rx_dst()
217 info = &tun_dst->u.tun_info; in udp_tun_rx_dst()
222 return tun_dst; in udp_tun_rx_dst()
Dip_gre.c255 struct metadata_dst *tun_dst = NULL; in erspan_rcv() local
296 tun_dst = ip_tun_rx_dst(skb, flags, in erspan_rcv()
298 if (!tun_dst) in erspan_rcv()
309 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in erspan_rcv()
315 info = &tun_dst->u.tun_info; in erspan_rcv()
321 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in erspan_rcv()
334 struct metadata_dst *tun_dst = NULL; in __ipgre_rcv() local
357 tun_dst = ip_tun_rx_dst(skb, flags, tun_id, 0); in __ipgre_rcv()
358 if (!tun_dst) in __ipgre_rcv()
362 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in __ipgre_rcv()
Dipip.c216 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()
Dip_tunnel.c362 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, in ip_tunnel_rcv() argument
422 if (tun_dst) in ip_tunnel_rcv()
423 skb_dst_set(skb, (struct dst_entry *)tun_dst); in ip_tunnel_rcv()
429 if (tun_dst) in ip_tunnel_rcv()
430 dst_release((struct dst_entry *)tun_dst); in ip_tunnel_rcv()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c458 __be32 tun_dst; in nfp_flower_compile_flow_match() local
461 tun_dst = ((struct nfp_flower_ipv4_gre_tun *)ext)->ipv4.dst; in nfp_flower_compile_flow_match()
468 nfp_flow->nfp_tun_ipv4_addr = tun_dst; in nfp_flower_compile_flow_match()
469 nfp_tunnel_add_ipv4_off(app, tun_dst); in nfp_flower_compile_flow_match()
474 __be32 tun_dst; in nfp_flower_compile_flow_match() local
477 tun_dst = ((struct nfp_flower_ipv4_udp_tun *)ext)->ipv4.dst; in nfp_flower_compile_flow_match()
484 nfp_flow->nfp_tun_ipv4_addr = tun_dst; in nfp_flower_compile_flow_match()
485 nfp_tunnel_add_ipv4_off(app, tun_dst); in nfp_flower_compile_flow_match()
/Linux-v5.4/net/ipv6/
Dip6_tunnel.c772 struct metadata_dst *tun_dst, in __ip6_tnl_rcv() argument
845 if (tun_dst) in __ip6_tnl_rcv()
846 skb_dst_set(skb, (struct dst_entry *)tun_dst); in __ip6_tnl_rcv()
852 if (tun_dst) in __ip6_tnl_rcv()
853 dst_release((struct dst_entry *)tun_dst); in __ip6_tnl_rcv()
860 struct metadata_dst *tun_dst, in ip6_tnl_rcv() argument
863 return __ip6_tnl_rcv(t, skb, tpi, tun_dst, ip6ip6_dscp_ecn_decapsulate, in ip6_tnl_rcv()
886 struct metadata_dst *tun_dst = NULL; in ipxip6_rcv() local
905 tun_dst = ipv6_tun_rx_dst(skb, 0, 0, 0); in ipxip6_rcv()
906 if (!tun_dst) in ipxip6_rcv()
[all …]
Dip6_gre.c500 struct metadata_dst *tun_dst; in ip6gre_rcv() local
507 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, 0); in ip6gre_rcv()
508 if (!tun_dst) in ip6gre_rcv()
511 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6gre_rcv()
552 struct metadata_dst *tun_dst; in ip6erspan_rcv() local
562 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, in ip6erspan_rcv()
564 if (!tun_dst) in ip6erspan_rcv()
575 info = &tun_dst->u.tun_info; in ip6erspan_rcv()
584 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6erspan_rcv()
/Linux-v5.4/net/openvswitch/
Dflow_netlink.c2277 dst_release((struct dst_entry *)ovs_tun->tun_dst); in ovs_nla_free_set_action()
2561 struct metadata_dst *tun_dst; in validate_and_copy_set_tun() local
2595 tun_dst = metadata_dst_alloc(key.tun_opts_len, METADATA_IP_TUNNEL, in validate_and_copy_set_tun()
2598 if (!tun_dst) in validate_and_copy_set_tun()
2601 err = dst_cache_init(&tun_dst->u.tun_info.dst_cache, GFP_KERNEL); in validate_and_copy_set_tun()
2603 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun()
2610 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun()
2615 ovs_tun->tun_dst = tun_dst; in validate_and_copy_set_tun()
2617 tun_info = &tun_dst->u.tun_info; in validate_and_copy_set_tun()
3376 struct ip_tunnel_info *tun_info = &ovs_tun->tun_dst->u.tun_info; in set_action_to_attr()
Dflow.h44 struct metadata_dst *tun_dst; member
Dactions.c1038 dst_hold((struct dst_entry *)tun->tun_dst); in execute_set_action()
1039 skb_dst_set(skb, (struct dst_entry *)tun->tun_dst); in execute_set_action()
/Linux-v5.4/drivers/net/
Dgeneve.c215 struct metadata_dst *tun_dst = NULL; in geneve_rx() local
228 tun_dst = udp_tun_rx_dst(skb, geneve_get_sk_family(gs), flags, in geneve_rx()
231 if (!tun_dst) { in geneve_rx()
236 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in geneve_rx()
254 if (tun_dst) in geneve_rx()
255 skb_dst_set(skb, &tun_dst->dst); in geneve_rx()
Dvxlan.c1538 struct metadata_dst *tun_dst; in vxlan_parse_gbp_hdr() local
1545 tun_dst = (struct metadata_dst *)skb_dst(skb); in vxlan_parse_gbp_hdr()
1546 if (tun_dst) { in vxlan_parse_gbp_hdr()
1547 tun_dst->u.tun_info.key.tun_flags |= TUNNEL_VXLAN_OPT; in vxlan_parse_gbp_hdr()
1548 tun_dst->u.tun_info.options_len = sizeof(*md); in vxlan_parse_gbp_hdr()
1703 struct metadata_dst *tun_dst; in vxlan_rcv() local
1705 tun_dst = udp_tun_rx_dst(skb, vxlan_get_sk_family(vs), TUNNEL_KEY, in vxlan_rcv()
1708 if (!tun_dst) in vxlan_rcv()
1711 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in vxlan_rcv()
1713 skb_dst_set(skb, (struct dst_entry *)tun_dst); in vxlan_rcv()