Lines Matching refs:ndst

2303 	struct dst_entry *ndst;  in vxlan6_get_route()  local
2312 ndst = dst_cache_get_ip6(dst_cache, saddr); in vxlan6_get_route()
2313 if (ndst) in vxlan6_get_route()
2314 return ndst; in vxlan6_get_route()
2327 ndst = ipv6_stub->ipv6_dst_lookup_flow(vxlan->net, sock6->sock->sk, in vxlan6_get_route()
2329 if (IS_ERR(ndst)) { in vxlan6_get_route()
2334 if (unlikely(ndst->dev == dev)) { in vxlan6_get_route()
2336 dst_release(ndst); in vxlan6_get_route()
2342 dst_cache_set_ip6(dst_cache, ndst, saddr); in vxlan6_get_route()
2343 return ndst; in vxlan6_get_route()
2459 struct dst_entry *ndst = NULL; in vxlan_xmit_one() local
2586 ndst = &rt->dst; in vxlan_xmit_one()
2587 err = skb_tunnel_check_pmtu(skb, ndst, VXLAN_HEADROOM, in vxlan_xmit_one()
2606 dst_release(ndst); in vxlan_xmit_one()
2612 err = vxlan_build_skb(skb, ndst, sizeof(struct iphdr), in vxlan_xmit_one()
2627 ndst = vxlan6_get_route(vxlan, dev, sock6, skb, ifindex, tos, in vxlan_xmit_one()
2632 if (IS_ERR(ndst)) { in vxlan_xmit_one()
2633 err = PTR_ERR(ndst); in vxlan_xmit_one()
2634 ndst = NULL; in vxlan_xmit_one()
2639 u32 rt6i_flags = ((struct rt6_info *)ndst)->rt6i_flags; in vxlan_xmit_one()
2643 ndst, rt6i_flags); in vxlan_xmit_one()
2648 err = skb_tunnel_check_pmtu(skb, ndst, VXLAN6_HEADROOM, in vxlan_xmit_one()
2668 dst_release(ndst); in vxlan_xmit_one()
2673 ttl = ttl ? : ip6_dst_hoplimit(ndst); in vxlan_xmit_one()
2675 err = vxlan_build_skb(skb, ndst, sizeof(struct ipv6hdr), in vxlan_xmit_one()
2680 udp_tunnel6_xmit_skb(ndst, sock6->sock->sk, skb, dev, in vxlan_xmit_one()
2703 dst_release(ndst); in vxlan_xmit_one()
3078 struct dst_entry *ndst; in vxlan_fill_metadata_dst() local
3080 ndst = vxlan6_get_route(vxlan, dev, sock6, skb, 0, info->key.tos, in vxlan_fill_metadata_dst()
3084 if (IS_ERR(ndst)) in vxlan_fill_metadata_dst()
3085 return PTR_ERR(ndst); in vxlan_fill_metadata_dst()
3086 dst_release(ndst); in vxlan_fill_metadata_dst()