/kernel/linux/linux-5.10/include/net/ |
H A D | dst_metadata.h | 99 struct metadata_dst *tun_dst; in tun_rx_dst() local 101 tun_dst = metadata_dst_alloc(md_size, METADATA_IP_TUNNEL, GFP_ATOMIC); in tun_rx_dst() 102 if (!tun_dst) in tun_rx_dst() 105 tun_dst->u.tun_info.options_len = 0; in tun_rx_dst() 106 tun_dst->u.tun_info.mode = 0; in tun_rx_dst() 107 return tun_dst; in tun_rx_dst() 150 struct metadata_dst *tun_dst; in __ip_tun_set_dst() local 152 tun_dst = tun_rx_dst(md_size); in __ip_tun_set_dst() 153 if (!tun_dst) in __ip_tun_set_dst() 156 ip_tunnel_key_init(&tun_dst in __ip_tun_set_dst() 182 struct metadata_dst *tun_dst; __ipv6_tun_set_dst() local [all...] |
H A D | ip6_tunnel.h | 140 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
|
/kernel/linux/linux-6.6/include/net/ |
H A D | dst_metadata.h | 141 struct metadata_dst *tun_dst; in tun_rx_dst() local 143 tun_dst = metadata_dst_alloc(md_size, METADATA_IP_TUNNEL, GFP_ATOMIC); in tun_rx_dst() 144 if (!tun_dst) in tun_rx_dst() 147 tun_dst->u.tun_info.options_len = 0; 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 207 tun_dst = tun_rx_dst(md_size); in __ip_tun_set_dst() 208 if (!tun_dst) in __ip_tun_set_dst() 211 ip_tunnel_key_init(&tun_dst in __ip_tun_set_dst() 237 struct metadata_dst *tun_dst; __ipv6_tun_set_dst() local [all...] |
H A D | ip6_tunnel.h | 141 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | udp_tunnel_core.c | 188 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()
|
H A D | ipip.c | 216 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() 244 ip_tunnel_md_udp_encap(skb, &tun_dst->u.tun_info); in ipip_tunnel_rcv() 248 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 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_erro in __ipgre_rcv() [all...] |
H A D | ip_tunnel.c | 377 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, in ip_tunnel_rcv() 444 if (tun_dst) in ip_tunnel_rcv() 445 skb_dst_set(skb, (struct dst_entry *)tun_dst); in ip_tunnel_rcv() 451 if (tun_dst) in ip_tunnel_rcv() 452 dst_release((struct dst_entry *)tun_dst); in ip_tunnel_rcv() 376 ip_tunnel_rcv(struct ip_tunnel *tunnel, struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, bool log_ecn_error) ip_tunnel_rcv() argument
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | udp_tunnel_core.c | 206 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 D | ipip.c | 216 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()
|
H A D | ip_gre.c | 264 struct metadata_dst *tun_dst = NULL; in erspan_rcv() local 314 tun_dst = ip_tun_rx_dst(skb, flags, in erspan_rcv() 316 if (!tun_dst) in erspan_rcv() 327 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in erspan_rcv() 333 info = &tun_dst->u.tun_info; in erspan_rcv() 339 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in erspan_rcv() 352 struct metadata_dst *tun_dst = NULL; in __ipgre_rcv() local 379 tun_dst = ip_tun_rx_dst(skb, flags, tun_id, 0); in __ipgre_rcv() 380 if (!tun_dst) in __ipgre_rcv() 384 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_erro in __ipgre_rcv() [all...] |
H A D | ip_tunnel.c | 363 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, in ip_tunnel_rcv() 430 if (tun_dst) in ip_tunnel_rcv() 431 skb_dst_set(skb, (struct dst_entry *)tun_dst); in ip_tunnel_rcv() 437 if (tun_dst) in ip_tunnel_rcv() 438 dst_release((struct dst_entry *)tun_dst); in ip_tunnel_rcv() 362 ip_tunnel_rcv(struct ip_tunnel *tunnel, struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, bool log_ecn_error) ip_tunnel_rcv() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
H A D | tc.c | 520 struct metadata_dst *tun_dst; in mlx5e_restore_tunnel() local 556 tun_dst = __ip_tun_set_dst(key.enc_ipv4.src, key.enc_ipv4.dst, in mlx5e_restore_tunnel() 562 tun_dst = __ipv6_tun_set_dst(&key.enc_ipv6.src, &key.enc_ipv6.dst, in mlx5e_restore_tunnel() 574 if (!tun_dst) { in mlx5e_restore_tunnel() 575 netdev_dbg(priv->netdev, "Couldn't restore tunnel, no tun_dst\n"); in mlx5e_restore_tunnel() 579 tun_dst->u.tun_info.key.tp_src = key.enc_tp.src; in mlx5e_restore_tunnel() 582 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in mlx5e_restore_tunnel() 587 skb_dst_set(skb, (struct dst_entry *)tun_dst); in mlx5e_restore_tunnel()
|
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | ip6_tunnel.c | 826 struct metadata_dst *tun_dst, in __ip6_tnl_rcv() 909 if (tun_dst) in __ip6_tnl_rcv() 910 skb_dst_set(skb, (struct dst_entry *)tun_dst); in __ip6_tnl_rcv() 916 if (tun_dst) in __ip6_tnl_rcv() 917 dst_release((struct dst_entry *)tun_dst); in __ip6_tnl_rcv() 924 struct metadata_dst *tun_dst, in ip6_tnl_rcv() 935 return __ip6_tnl_rcv(t, skb, tpi, tun_dst, dscp_ecn_decapsulate, in ip6_tnl_rcv() 963 struct metadata_dst *tun_dst = NULL; in ipxip6_rcv() local 982 tun_dst = ipv6_tun_rx_dst(skb, 0, 0, 0); in ipxip6_rcv() 983 if (!tun_dst) in ipxip6_rcv() 824 __ip6_tnl_rcv(struct ip6_tnl *tunnel, struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, int (*dscp_ecn_decapsulate)(const struct ip6_tnl *t, const struct ipv6hdr *ipv6h, struct sk_buff *skb), bool log_ecn_err) __ip6_tnl_rcv() argument 922 ip6_tnl_rcv(struct ip6_tnl *t, struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, bool log_ecn_err) ip6_tnl_rcv() argument [all...] |
H A D | ip6_gre.c | 504 struct metadata_dst *tun_dst; in ip6gre_rcv() local 511 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, 0); in ip6gre_rcv() 512 if (!tun_dst) in ip6gre_rcv() 515 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6gre_rcv() 556 struct metadata_dst *tun_dst; in ip6erspan_rcv() local 566 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, in ip6erspan_rcv() 568 if (!tun_dst) in ip6erspan_rcv() 579 info = &tun_dst->u.tun_info; in ip6erspan_rcv() 588 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6erspan_rcv()
|
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | ip6_tunnel.c | 793 struct metadata_dst *tun_dst, in __ip6_tnl_rcv() 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() 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 950 tun_dst = ipv6_tun_rx_dst(skb, 0, 0, 0); in ipxip6_rcv() 951 if (!tun_dst) in ipxip6_rcv() 791 __ip6_tnl_rcv(struct ip6_tnl *tunnel, struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, int (*dscp_ecn_decapsulate)(const struct ip6_tnl *t, const struct ipv6hdr *ipv6h, struct sk_buff *skb), bool log_ecn_err) __ip6_tnl_rcv() argument 890 ip6_tnl_rcv(struct ip6_tnl *t, struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, bool log_ecn_err) ip6_tnl_rcv() argument [all...] |
H A D | ip6_gre.c | 499 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()
|
/kernel/linux/linux-5.10/drivers/net/ |
H A D | bareudp.c | 56 struct metadata_dst *tun_dst = NULL; in bareudp_udp_encap_recv() local 133 tun_dst = udp_tun_rx_dst(skb, family, TUNNEL_KEY, 0, 0); in bareudp_udp_encap_recv() 134 if (!tun_dst) { in bareudp_udp_encap_recv() 138 skb_dst_set(skb, &tun_dst->dst); in bareudp_udp_encap_recv()
|
H A D | geneve.c | 219 struct metadata_dst *tun_dst = NULL; in geneve_rx() local 230 tun_dst = udp_tun_rx_dst(skb, geneve_get_sk_family(gs), flags, in geneve_rx() 233 if (!tun_dst) { in geneve_rx() 238 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in geneve_rx() 256 if (tun_dst) in geneve_rx() 257 skb_dst_set(skb, &tun_dst->dst); in geneve_rx()
|
/kernel/linux/linux-6.6/drivers/net/ |
H A D | bareudp.c | 63 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()
|
H A D | geneve.c | 222 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()
|
/kernel/linux/linux-5.10/net/openvswitch/ |
H A D | flow_netlink.c | 2356 dst_release((struct dst_entry *)ovs_tun->tun_dst); in ovs_nla_free_set_action() 2724 struct metadata_dst *tun_dst; in validate_and_copy_set_tun() local 2758 tun_dst = metadata_dst_alloc(key.tun_opts_len, METADATA_IP_TUNNEL, in validate_and_copy_set_tun() 2761 if (!tun_dst) in validate_and_copy_set_tun() 2764 err = dst_cache_init(&tun_dst->u.tun_info.dst_cache, GFP_KERNEL); in validate_and_copy_set_tun() 2766 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun() 2773 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun() 2778 ovs_tun->tun_dst = tun_dst; in validate_and_copy_set_tun() 2780 tun_info = &tun_dst in validate_and_copy_set_tun() [all...] |
H A D | flow.h | 45 struct metadata_dst *tun_dst; member
|
/kernel/linux/linux-6.6/net/openvswitch/ |
H A D | flow_netlink.c | 2387 dst_release((struct dst_entry *)ovs_tun->tun_dst); in ovs_nla_free_set_action() 2765 struct metadata_dst *tun_dst; in validate_and_copy_set_tun() local 2799 tun_dst = metadata_dst_alloc(key.tun_opts_len, METADATA_IP_TUNNEL, in validate_and_copy_set_tun() 2802 if (!tun_dst) in validate_and_copy_set_tun() 2805 err = dst_cache_init(&tun_dst->u.tun_info.dst_cache, GFP_KERNEL); in validate_and_copy_set_tun() 2807 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun() 2814 dst_release((struct dst_entry *)tun_dst); in validate_and_copy_set_tun() 2819 ovs_tun->tun_dst = tun_dst; in validate_and_copy_set_tun() 2821 tun_info = &tun_dst in validate_and_copy_set_tun() [all...] |
H A D | flow.h | 58 struct metadata_dst *tun_dst; member
|