Lines Matching refs:ndst

2456 	struct dst_entry *ndst;  in vxlan6_get_route()  local
2465 ndst = dst_cache_get_ip6(dst_cache, saddr); in vxlan6_get_route()
2466 if (ndst) in vxlan6_get_route()
2467 return ndst; in vxlan6_get_route()
2480 ndst = ipv6_stub->ipv6_dst_lookup_flow(vxlan->net, sock6->sock->sk, in vxlan6_get_route()
2482 if (IS_ERR(ndst)) { in vxlan6_get_route()
2487 if (unlikely(ndst->dev == dev)) { in vxlan6_get_route()
2489 dst_release(ndst); in vxlan6_get_route()
2495 dst_cache_set_ip6(dst_cache, ndst, saddr); in vxlan6_get_route()
2496 return ndst; in vxlan6_get_route()
2604 struct dst_entry *ndst = NULL; in vxlan_xmit_one() local
2723 ndst = &rt->dst; in vxlan_xmit_one()
2724 err = skb_tunnel_check_pmtu(skb, ndst, VXLAN_HEADROOM, in vxlan_xmit_one()
2743 dst_release(ndst); in vxlan_xmit_one()
2749 err = vxlan_build_skb(skb, ndst, sizeof(struct iphdr), in vxlan_xmit_one()
2764 ndst = vxlan6_get_route(vxlan, dev, sock6, skb, ifindex, tos, in vxlan_xmit_one()
2769 if (IS_ERR(ndst)) { in vxlan_xmit_one()
2770 err = PTR_ERR(ndst); in vxlan_xmit_one()
2771 ndst = NULL; in vxlan_xmit_one()
2776 u32 rt6i_flags = ((struct rt6_info *)ndst)->rt6i_flags; in vxlan_xmit_one()
2780 ndst, rt6i_flags); in vxlan_xmit_one()
2785 err = skb_tunnel_check_pmtu(skb, ndst, VXLAN6_HEADROOM, in vxlan_xmit_one()
2805 dst_release(ndst); in vxlan_xmit_one()
2810 ttl = ttl ? : ip6_dst_hoplimit(ndst); in vxlan_xmit_one()
2812 err = vxlan_build_skb(skb, ndst, sizeof(struct ipv6hdr), in vxlan_xmit_one()
2817 udp_tunnel6_xmit_skb(ndst, sock6->sock->sk, skb, dev, in vxlan_xmit_one()
2838 dst_release(ndst); in vxlan_xmit_one()
3202 struct dst_entry *ndst; in vxlan_fill_metadata_dst() local
3204 ndst = vxlan6_get_route(vxlan, dev, sock6, skb, 0, info->key.tos, in vxlan_fill_metadata_dst()
3208 if (IS_ERR(ndst)) in vxlan_fill_metadata_dst()
3209 return PTR_ERR(ndst); in vxlan_fill_metadata_dst()
3210 dst_release(ndst); in vxlan_fill_metadata_dst()