/linux/include/net/ |
H A D | dst_metadata.h | 141 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 D | ip6_tunnel.h | 141 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
|
H A D | ip_tunnels.h | 405 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
|
/linux/drivers/net/ |
H A D | pfcp.c | 54 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 D | bareudp.c | 63 struct metadata_dst *tun_dst = NULL; in bareudp_udp_encap_recv() local 144 tun_dst = udp_tun_rx_dst(skb, family, key, 0, 0); in bareudp_udp_encap_recv() 145 if (!tun_dst) { in bareudp_udp_encap_recv() 149 skb_dst_set(skb, &tun_dst->dst); in bareudp_udp_encap_recv()
|
H A D | geneve.c | 222 struct metadata_dst *tun_dst = NULL; in geneve_rx() local 234 tun_dst = udp_tun_rx_dst(skb, geneve_get_sk_family(gs), flags, in geneve_rx() 237 if (!tun_dst) { in geneve_rx() 244 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in geneve_rx() 258 if (tun_dst) in geneve_rx() 259 skb_dst_set(skb, &tun_dst->dst); in geneve_rx()
|
/linux/net/ipv4/ |
H A D | udp_tunnel_core.c | 189 struct metadata_dst *tun_dst; in udp_tun_rx_dst() local 193 tun_dst = ip_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst() 195 tun_dst = ipv6_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst() 196 if (!tun_dst) in udp_tun_rx_dst() 199 info = &tun_dst->u.tun_info; in udp_tun_rx_dst() 204 return tun_dst; in udp_tun_rx_dst()
|
H A D | ipip.c | 220 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 D | ip_gre.c | 266 struct metadata_dst *tun_dst = NULL; in erspan_rcv() local 323 tun_dst = ip_tun_rx_dst(skb, flags, in erspan_rcv() 325 if (!tun_dst) in erspan_rcv() 336 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in erspan_rcv() 342 info = &tun_dst->u.tun_info; in erspan_rcv() 349 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in erspan_rcv() 362 struct metadata_dst *tun_dst = NULL; in __ipgre_rcv() local 395 tun_dst = ip_tun_rx_dst(skb, flags, tun_id, 0); in __ipgre_rcv() 396 if (!tun_dst) in __ipgre_rcv() 400 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in __ipgre_rcv()
|
H A D | ip_tunnel.c | 376 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, in ip_tunnel_rcv() argument 443 if (tun_dst) in ip_tunnel_rcv() 444 skb_dst_set(skb, (struct dst_entry *)tun_dst); in ip_tunnel_rcv() 450 if (tun_dst) in ip_tunnel_rcv() 451 dst_release((struct dst_entry *)tun_dst); in ip_tunnel_rcv()
|
/linux/net/ipv6/ |
H A D | ip6_tunnel.c | 792 struct metadata_dst *tun_dst, in __ip6_tnl_rcv() argument 874 if (tun_dst) in __ip6_tnl_rcv() 875 skb_dst_set(skb, (struct dst_entry *)tun_dst); in __ip6_tnl_rcv() 881 if (tun_dst) in __ip6_tnl_rcv() 882 dst_release((struct dst_entry *)tun_dst); in __ip6_tnl_rcv() 889 struct metadata_dst *tun_dst, in ip6_tnl_rcv() argument 900 return __ip6_tnl_rcv(t, skb, tpi, tun_dst, dscp_ecn_decapsulate, in ip6_tnl_rcv() 928 struct metadata_dst *tun_dst = NULL; in ipxip6_rcv() local 949 tun_dst = ipv6_tun_rx_dst(skb, flags, 0, 0); in ipxip6_rcv() 950 if (!tun_dst) in ipxip6_rcv() [all …]
|
H A D | ip6_gre.c | 500 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() 555 struct metadata_dst *tun_dst; in ip6erspan_rcv() local 564 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, in ip6erspan_rcv() 566 if (!tun_dst) in ip6erspan_rcv() 577 info = &tun_dst->u.tun_info; in ip6erspan_rcv() 587 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6erspan_rcv()
|
/linux/net/openvswitch/ |
H A D | flow.h | 58 struct metadata_dst *tun_dst; member
|
H A D | flow_netlink.c | 2399 dst_release((struct dst_entry *)ovs_tun->tun_dst); in ovs_nla_free_set_action() 2779 struct metadata_dst *tun_dst; in validate_and_copy_set_tun() local 2812 tun_dst = metadata_dst_alloc(key.tun_opts_len, METADATA_IP_TUNNEL, in validate_and_copy_set_tun() 2815 if (!tun_dst) in validate_and_copy_set_tun() 2818 err = dst_cache_init(&tun_dst->u.tun_info.dst_cache, GFP_KERNEL); in validate_and_copy_set_tun() 2820 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun() 2827 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun() 2832 ovs_tun->tun_dst = tun_dst; in validate_and_copy_set_tun() 2834 tun_info = &tun_dst->u.tun_info; in validate_and_copy_set_tun() 3719 struct ip_tunnel_info *tun_info = &ovs_tun->tun_dst->u.tun_info; in set_action_to_attr()
|
H A D | actions.c | 1119 dst_hold((struct dst_entry *)tun->tun_dst); in execute_set_action() 1120 skb_dst_set(skb, (struct dst_entry *)tun->tun_dst); in execute_set_action()
|
/linux/drivers/net/vxlan/ |
H A D | vxlan_core.c | 1582 struct metadata_dst *tun_dst; in vxlan_parse_gbp_hdr() local 1589 tun_dst = (struct metadata_dst *)skb_dst(skb); in vxlan_parse_gbp_hdr() 1590 if (tun_dst) { in vxlan_parse_gbp_hdr() 1592 tun_dst->u.tun_info.key.tun_flags); in vxlan_parse_gbp_hdr() 1593 tun_dst->u.tun_info.options_len = sizeof(*md); in vxlan_parse_gbp_hdr() 1726 struct metadata_dst *tun_dst; in vxlan_rcv() local 1729 tun_dst = udp_tun_rx_dst(skb, vxlan_get_sk_family(vs), flags, in vxlan_rcv() 1732 if (!tun_dst) in vxlan_rcv() 1735 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in vxlan_rcv() 1737 skb_dst_set(skb, (struct dst_entry *)tun_dst); in vxlan_rcv()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_tc.c | 5466 struct metadata_dst *tun_dst; in mlx5e_tc_restore_tunnel() local 5504 tun_dst = __ip_tun_set_dst(key.enc_ipv4.src, key.enc_ipv4.dst, in mlx5e_tc_restore_tunnel() 5511 tun_dst = __ipv6_tun_set_dst(&key.enc_ipv6.src, &key.enc_ipv6.dst, in mlx5e_tc_restore_tunnel() 5524 if (!tun_dst) { in mlx5e_tc_restore_tunnel() 5529 tun_dst->u.tun_info.key.tp_src = key.enc_tp.src; in mlx5e_tc_restore_tunnel() 5536 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in mlx5e_tc_restore_tunnel() 5542 skb_dst_set(skb, (struct dst_entry *)tun_dst); in mlx5e_tc_restore_tunnel()
|