Home
last modified time | relevance | path

Searched refs:tun_dst (Results 1 – 17 of 17) 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()
209 struct metadata_dst *tun_dst; in __ip_tun_set_dst() local
211 tun_dst = tun_rx_dst(md_size); in __ip_tun_set_dst()
212 if (!tun_dst) in __ip_tun_set_dst()
215 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.h424 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
/linux/drivers/net/
H A Dpfcp.c55 struct metadata_dst *tun_dst; in pfcp_encap_recv() local
70 tun_dst = udp_tun_rx_dst(skb, sk->sk_family, flags, 0, in pfcp_encap_recv()
72 if (unlikely(!tun_dst)) in pfcp_encap_recv()
75 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in pfcp_encap_recv()
84 __set_bit(IP_TUNNEL_PFCP_OPT_BIT, tun_dst->u.tun_info.key.tun_flags); in pfcp_encap_recv()
85 tun_dst->u.tun_info.options_len = sizeof(*md); in pfcp_encap_recv()
92 skb_dst_set(skb, (struct dst_entry *)tun_dst); in pfcp_encap_recv()
H A Dbareudp.c64 struct metadata_dst *tun_dst = NULL; in bareudp_udp_encap_recv() local
146 tun_dst = udp_tun_rx_dst(skb, family, key, 0, 0); in bareudp_udp_encap_recv()
147 if (!tun_dst) { in bareudp_udp_encap_recv()
151 skb_dst_set(skb, &tun_dst->dst); in bareudp_udp_encap_recv()
H A Dgeneve.c278 struct metadata_dst *tun_dst = NULL; in geneve_rx() local
290 tun_dst = udp_tun_rx_dst(skb, geneve_get_sk_family(gs), flags, in geneve_rx()
293 if (!tun_dst) { in geneve_rx()
300 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in geneve_rx()
314 if (tun_dst) in geneve_rx()
315 skb_dst_set(skb, &tun_dst->dst); in geneve_rx()
/linux/net/ipv4/
H A Dudp_tunnel_core.c206 struct metadata_dst *tun_dst; in udp_tun_rx_dst() local
210 tun_dst = ip_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst()
212 tun_dst = ipv6_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst()
213 if (!tun_dst) in udp_tun_rx_dst()
216 info = &tun_dst->u.tun_info; in udp_tun_rx_dst()
221 return tun_dst; in udp_tun_rx_dst()
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.c92 struct dst_entry *tun_dst; member
137 info->tun_dst = path->tun.dst; in nft_dev_path_info()
251 route->tuple[dir].dst = info.tun_dst; in nft_dev_forward_path()
/linux/net/ipv6/
H A Dip6_tunnel.c810 struct metadata_dst *tun_dst, in __ip6_tnl_rcv() argument
892 if (tun_dst) in __ip6_tnl_rcv()
893 skb_dst_set(skb, (struct dst_entry *)tun_dst); in __ip6_tnl_rcv()
899 if (tun_dst) in __ip6_tnl_rcv()
900 dst_release((struct dst_entry *)tun_dst); in __ip6_tnl_rcv()
907 struct metadata_dst *tun_dst, in ip6_tnl_rcv() argument
918 return __ip6_tnl_rcv(t, skb, tpi, tun_dst, dscp_ecn_decapsulate, in ip6_tnl_rcv()
946 struct metadata_dst *tun_dst = NULL; in ipxip6_rcv() local
967 tun_dst = ipv6_tun_rx_dst(skb, flags, 0, 0); in ipxip6_rcv()
968 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/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()
2806 struct metadata_dst *tun_dst; in validate_and_copy_set_tun() local
2839 tun_dst = metadata_dst_alloc(key.tun_opts_len, METADATA_IP_TUNNEL, in validate_and_copy_set_tun()
2842 if (!tun_dst) { in validate_and_copy_set_tun()
2847 err = dst_cache_init(&tun_dst->u.tun_info.dst_cache, GFP_KERNEL); in validate_and_copy_set_tun()
2859 ovs_tun->tun_dst = tun_dst; in validate_and_copy_set_tun()
2861 tun_info = &tun_dst->u.tun_info; in validate_and_copy_set_tun()
2883 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun()
3812 struct ip_tunnel_info *tun_info = &ovs_tun->tun_dst->u.tun_info; in set_action_to_attr()
H A Dactions.c1028 dst_hold((struct dst_entry *)tun->tun_dst); in execute_set_action()
1029 skb_dst_set(skb, (struct dst_entry *)tun->tun_dst); in execute_set_action()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c5625 struct metadata_dst *tun_dst; in mlx5e_tc_restore_tunnel() local
5663 tun_dst = __ip_tun_set_dst(key.enc_ipv4.src, key.enc_ipv4.dst, in mlx5e_tc_restore_tunnel()
5670 tun_dst = __ipv6_tun_set_dst(&key.enc_ipv6.src, &key.enc_ipv6.dst, in mlx5e_tc_restore_tunnel()
5683 if (!tun_dst) { in mlx5e_tc_restore_tunnel()
5688 tun_dst->u.tun_info.key.tp_src = key.enc_tp.src; in mlx5e_tc_restore_tunnel()
5695 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in mlx5e_tc_restore_tunnel()
5701 skb_dst_set(skb, (struct dst_entry *)tun_dst); in mlx5e_tc_restore_tunnel()