Lines Matching refs:ndst

2282 	struct dst_entry *ndst;  in vxlan6_get_route()  local
2291 ndst = dst_cache_get_ip6(dst_cache, saddr); in vxlan6_get_route()
2292 if (ndst) in vxlan6_get_route()
2293 return ndst; in vxlan6_get_route()
2306 ndst = ipv6_stub->ipv6_dst_lookup_flow(vxlan->net, sock6->sock->sk, in vxlan6_get_route()
2308 if (IS_ERR(ndst)) { in vxlan6_get_route()
2313 if (unlikely(ndst->dev == dev)) { in vxlan6_get_route()
2315 dst_release(ndst); in vxlan6_get_route()
2321 dst_cache_set_ip6(dst_cache, ndst, saddr); in vxlan6_get_route()
2322 return ndst; in vxlan6_get_route()
2429 struct dst_entry *ndst = NULL; in vxlan_xmit_one() local
2556 ndst = &rt->dst; in vxlan_xmit_one()
2557 err = skb_tunnel_check_pmtu(skb, ndst, vxlan_headroom(flags & VXLAN_F_GPE), in vxlan_xmit_one()
2576 dst_release(ndst); in vxlan_xmit_one()
2582 err = vxlan_build_skb(skb, ndst, sizeof(struct iphdr), in vxlan_xmit_one()
2597 ndst = vxlan6_get_route(vxlan, dev, sock6, skb, ifindex, tos, in vxlan_xmit_one()
2602 if (IS_ERR(ndst)) { in vxlan_xmit_one()
2603 err = PTR_ERR(ndst); in vxlan_xmit_one()
2604 ndst = NULL; in vxlan_xmit_one()
2609 u32 rt6i_flags = ((struct rt6_info *)ndst)->rt6i_flags; in vxlan_xmit_one()
2613 ndst, rt6i_flags); in vxlan_xmit_one()
2618 err = skb_tunnel_check_pmtu(skb, ndst, in vxlan_xmit_one()
2639 dst_release(ndst); in vxlan_xmit_one()
2644 ttl = ttl ? : ip6_dst_hoplimit(ndst); in vxlan_xmit_one()
2646 err = vxlan_build_skb(skb, ndst, sizeof(struct ipv6hdr), in vxlan_xmit_one()
2651 udp_tunnel6_xmit_skb(ndst, sock6->sock->sk, skb, dev, in vxlan_xmit_one()
2674 dst_release(ndst); in vxlan_xmit_one()
3114 struct dst_entry *ndst; in vxlan_fill_metadata_dst() local
3116 ndst = vxlan6_get_route(vxlan, dev, sock6, skb, 0, info->key.tos, in vxlan_fill_metadata_dst()
3120 if (IS_ERR(ndst)) in vxlan_fill_metadata_dst()
3121 return PTR_ERR(ndst); in vxlan_fill_metadata_dst()
3122 dst_release(ndst); in vxlan_fill_metadata_dst()