Home
last modified time | relevance | path

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

/linux-6.3-rc2/include/net/
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 …]
A Dip6_tunnel.h141 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
A Dip_tunnels.h297 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
/linux-6.3-rc2/net/ipv4/
A Dudp_tunnel_core.c188 struct metadata_dst *tun_dst; in udp_tun_rx_dst() local
192 tun_dst = ip_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst()
194 tun_dst = ipv6_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst()
195 if (!tun_dst) in udp_tun_rx_dst()
198 info = &tun_dst->u.tun_info; in udp_tun_rx_dst()
203 return tun_dst; in udp_tun_rx_dst()
A 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()
247 return ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ipip_tunnel_rcv()
A Dip_gre.c266 struct metadata_dst *tun_dst = NULL; in erspan_rcv() local
316 tun_dst = ip_tun_rx_dst(skb, flags, in erspan_rcv()
318 if (!tun_dst) in erspan_rcv()
329 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in erspan_rcv()
335 info = &tun_dst->u.tun_info; in erspan_rcv()
341 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in erspan_rcv()
354 struct metadata_dst *tun_dst = NULL; in __ipgre_rcv() local
384 tun_dst = ip_tun_rx_dst(skb, flags, tun_id, 0); in __ipgre_rcv()
385 if (!tun_dst) in __ipgre_rcv()
389 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in __ipgre_rcv()
A Dip_tunnel.c363 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, in ip_tunnel_rcv() argument
417 if (tun_dst) in ip_tunnel_rcv()
418 skb_dst_set(skb, (struct dst_entry *)tun_dst); in ip_tunnel_rcv()
424 if (tun_dst) in ip_tunnel_rcv()
425 dst_release((struct dst_entry *)tun_dst); in ip_tunnel_rcv()
/linux-6.3-rc2/net/ipv6/
A Dip6_tunnel.c793 struct metadata_dst *tun_dst, in __ip6_tnl_rcv() argument
862 if (tun_dst) in __ip6_tnl_rcv()
863 skb_dst_set(skb, (struct dst_entry *)tun_dst); in __ip6_tnl_rcv()
869 if (tun_dst) in __ip6_tnl_rcv()
870 dst_release((struct dst_entry *)tun_dst); in __ip6_tnl_rcv()
877 struct metadata_dst *tun_dst, in ip6_tnl_rcv() argument
888 return __ip6_tnl_rcv(t, skb, tpi, tun_dst, dscp_ecn_decapsulate, in ip6_tnl_rcv()
916 struct metadata_dst *tun_dst = NULL; in ipxip6_rcv() local
935 tun_dst = ipv6_tun_rx_dst(skb, 0, 0, 0); in ipxip6_rcv()
936 if (!tun_dst) in ipxip6_rcv()
[all …]
A Dip6_gre.c499 struct metadata_dst *tun_dst; in ip6gre_rcv() local
506 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, 0); in ip6gre_rcv()
507 if (!tun_dst) in ip6gre_rcv()
510 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6gre_rcv()
551 struct metadata_dst *tun_dst; in ip6erspan_rcv() local
561 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, in ip6erspan_rcv()
563 if (!tun_dst) in ip6erspan_rcv()
574 info = &tun_dst->u.tun_info; in ip6erspan_rcv()
583 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6erspan_rcv()
/linux-6.3-rc2/drivers/net/
A Dbareudp.c63 struct metadata_dst *tun_dst = NULL; in bareudp_udp_encap_recv() local
140 tun_dst = udp_tun_rx_dst(skb, family, TUNNEL_KEY, 0, 0); in bareudp_udp_encap_recv()
141 if (!tun_dst) { in bareudp_udp_encap_recv()
145 skb_dst_set(skb, &tun_dst->dst); in bareudp_udp_encap_recv()
A Dgeneve.c222 struct metadata_dst *tun_dst = NULL; in geneve_rx() local
233 tun_dst = udp_tun_rx_dst(skb, geneve_get_sk_family(gs), flags, in geneve_rx()
236 if (!tun_dst) { in geneve_rx()
241 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in geneve_rx()
255 if (tun_dst) in geneve_rx()
256 skb_dst_set(skb, &tun_dst->dst); in geneve_rx()
/linux-6.3-rc2/net/openvswitch/
A Dflow.h58 struct metadata_dst *tun_dst; member
A Dflow_netlink.c2384 dst_release((struct dst_entry *)ovs_tun->tun_dst); in ovs_nla_free_set_action()
2755 struct metadata_dst *tun_dst; in validate_and_copy_set_tun() local
2789 tun_dst = metadata_dst_alloc(key.tun_opts_len, METADATA_IP_TUNNEL, in validate_and_copy_set_tun()
2792 if (!tun_dst) in validate_and_copy_set_tun()
2795 err = dst_cache_init(&tun_dst->u.tun_info.dst_cache, GFP_KERNEL); in validate_and_copy_set_tun()
2797 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun()
2804 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun()
2809 ovs_tun->tun_dst = tun_dst; in validate_and_copy_set_tun()
2811 tun_info = &tun_dst->u.tun_info; in validate_and_copy_set_tun()
3679 struct ip_tunnel_info *tun_info = &ovs_tun->tun_dst->u.tun_info; in set_action_to_attr()
A Dactions.c1093 dst_hold((struct dst_entry *)tun->tun_dst); in execute_set_action()
1094 skb_dst_set(skb, (struct dst_entry *)tun->tun_dst); in execute_set_action()
/linux-6.3-rc2/drivers/net/vxlan/
A Dvxlan_core.c1550 struct metadata_dst *tun_dst; in vxlan_parse_gbp_hdr() local
1557 tun_dst = (struct metadata_dst *)skb_dst(skb); in vxlan_parse_gbp_hdr()
1558 if (tun_dst) { in vxlan_parse_gbp_hdr()
1559 tun_dst->u.tun_info.key.tun_flags |= TUNNEL_VXLAN_OPT; in vxlan_parse_gbp_hdr()
1560 tun_dst->u.tun_info.options_len = sizeof(*md); in vxlan_parse_gbp_hdr()
1719 struct metadata_dst *tun_dst; in vxlan_rcv() local
1721 tun_dst = udp_tun_rx_dst(skb, vxlan_get_sk_family(vs), TUNNEL_KEY, in vxlan_rcv()
1724 if (!tun_dst) in vxlan_rcv()
1727 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in vxlan_rcv()
1729 skb_dst_set(skb, (struct dst_entry *)tun_dst); in vxlan_rcv()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/
A Den_tc.c5558 struct metadata_dst *tun_dst; in mlx5e_tc_restore_tunnel() local
5594 tun_dst = __ip_tun_set_dst(key.enc_ipv4.src, key.enc_ipv4.dst, in mlx5e_tc_restore_tunnel()
5601 tun_dst = __ipv6_tun_set_dst(&key.enc_ipv6.src, &key.enc_ipv6.dst, in mlx5e_tc_restore_tunnel()
5614 if (!tun_dst) { in mlx5e_tc_restore_tunnel()
5619 tun_dst->u.tun_info.key.tp_src = key.enc_tp.src; in mlx5e_tc_restore_tunnel()
5622 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in mlx5e_tc_restore_tunnel()
5627 skb_dst_set(skb, (struct dst_entry *)tun_dst); in mlx5e_tc_restore_tunnel()

Completed in 55 milliseconds