Home
last modified time | relevance | path

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

/linux-6.15/include/net/
H A Ddst_metadata.h141 struct metadata_dst *tun_dst; in tun_rx_dst() local
144 if (!tun_dst) in tun_rx_dst()
148 tun_dst->u.tun_info.mode = 0; in tun_rx_dst()
149 return tun_dst; in tun_rx_dst()
205 struct metadata_dst *tun_dst; in __ip_tun_set_dst() local
208 if (!tun_dst) in __ip_tun_set_dst()
214 return tun_dst; in __ip_tun_set_dst()
237 struct metadata_dst *tun_dst; in __ipv6_tun_set_dst() local
241 if (!tun_dst) in __ipv6_tun_set_dst()
244 info = &tun_dst->u.tun_info; in __ipv6_tun_set_dst()
[all …]
H A Dip6_tunnel.h141 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
H A Dip_tunnels.h406 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
/linux-6.15/drivers/net/
H A Dpfcp.c54 struct metadata_dst *tun_dst; in pfcp_encap_recv() local
69 tun_dst = udp_tun_rx_dst(skb, sk->sk_family, flags, 0, in pfcp_encap_recv()
71 if (unlikely(!tun_dst)) in pfcp_encap_recv()
74 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in pfcp_encap_recv()
83 __set_bit(IP_TUNNEL_PFCP_OPT_BIT, tun_dst->u.tun_info.key.tun_flags); in pfcp_encap_recv()
84 tun_dst->u.tun_info.options_len = sizeof(*md); in pfcp_encap_recv()
91 skb_dst_set(skb, (struct dst_entry *)tun_dst); in pfcp_encap_recv()
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()
H A Dgeneve.c225 struct metadata_dst *tun_dst = NULL; in geneve_rx() local
237 tun_dst = udp_tun_rx_dst(skb, geneve_get_sk_family(gs), flags, in geneve_rx()
240 if (!tun_dst) { in geneve_rx()
247 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in geneve_rx()
261 if (tun_dst) in geneve_rx()
262 skb_dst_set(skb, &tun_dst->dst); in geneve_rx()
/linux-6.15/net/ipv4/
H A Dudp_tunnel_core.c190 struct metadata_dst *tun_dst; in udp_tun_rx_dst() local
194 tun_dst = ip_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst()
196 tun_dst = ipv6_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst()
197 if (!tun_dst) in udp_tun_rx_dst()
200 info = &tun_dst->u.tun_info; in udp_tun_rx_dst()
205 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()
341 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in erspan_rcv()
347 info = &tun_dst->u.tun_info; in erspan_rcv()
354 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in erspan_rcv()
367 struct metadata_dst *tun_dst = NULL; in __ipgre_rcv() local
400 tun_dst = ip_tun_rx_dst(skb, flags, tun_id, 0); in __ipgre_rcv()
401 if (!tun_dst) in __ipgre_rcv()
405 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-6.15/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.c501 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()
556 struct metadata_dst *tun_dst; in ip6erspan_rcv() local
565 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, in ip6erspan_rcv()
567 if (!tun_dst) in ip6erspan_rcv()
578 info = &tun_dst->u.tun_info; in ip6erspan_rcv()
588 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6erspan_rcv()
/linux-6.15/net/openvswitch/
H A Dflow.h58 struct metadata_dst *tun_dst; member
H A Dflow_netlink.c2396 dst_release((struct dst_entry *)ovs_tun->tun_dst); in ovs_nla_free_set_action()
2767 struct metadata_dst *tun_dst; in validate_and_copy_set_tun() local
2800 tun_dst = metadata_dst_alloc(key.tun_opts_len, METADATA_IP_TUNNEL, in validate_and_copy_set_tun()
2803 if (!tun_dst) in validate_and_copy_set_tun()
2806 err = dst_cache_init(&tun_dst->u.tun_info.dst_cache, GFP_KERNEL); in validate_and_copy_set_tun()
2808 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun()
2815 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun()
2820 ovs_tun->tun_dst = tun_dst; in validate_and_copy_set_tun()
2822 tun_info = &tun_dst->u.tun_info; in validate_and_copy_set_tun()
3737 struct ip_tunnel_info *tun_info = &ovs_tun->tun_dst->u.tun_info; in set_action_to_attr()
H A Dactions.c1133 dst_hold((struct dst_entry *)tun->tun_dst); in execute_set_action()
1134 skb_dst_set(skb, (struct dst_entry *)tun->tun_dst); in execute_set_action()
/linux-6.15/drivers/net/vxlan/
H A Dvxlan_core.c1591 struct metadata_dst *tun_dst; in vxlan_parse_gbp_hdr() local
1600 tun_dst = (struct metadata_dst *)skb_dst(skb); in vxlan_parse_gbp_hdr()
1601 if (tun_dst) { in vxlan_parse_gbp_hdr()
1603 tun_dst->u.tun_info.key.tun_flags); in vxlan_parse_gbp_hdr()
1604 tun_dst->u.tun_info.options_len = sizeof(*md); in vxlan_parse_gbp_hdr()
1754 struct metadata_dst *tun_dst; in vxlan_rcv() local
1757 tun_dst = udp_tun_rx_dst(skb, vxlan_get_sk_family(vs), flags, in vxlan_rcv()
1760 if (!tun_dst) { in vxlan_rcv()
1765 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in vxlan_rcv()
1767 skb_dst_set(skb, (struct dst_entry *)tun_dst); in vxlan_rcv()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c5583 struct metadata_dst *tun_dst; in mlx5e_tc_restore_tunnel() local
5621 tun_dst = __ip_tun_set_dst(key.enc_ipv4.src, key.enc_ipv4.dst, in mlx5e_tc_restore_tunnel()
5628 tun_dst = __ipv6_tun_set_dst(&key.enc_ipv6.src, &key.enc_ipv6.dst, in mlx5e_tc_restore_tunnel()
5641 if (!tun_dst) { in mlx5e_tc_restore_tunnel()
5646 tun_dst->u.tun_info.key.tp_src = key.enc_tp.src; in mlx5e_tc_restore_tunnel()
5653 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in mlx5e_tc_restore_tunnel()
5659 skb_dst_set(skb, (struct dst_entry *)tun_dst); in mlx5e_tc_restore_tunnel()