Lines Matching refs:ndst
2455 struct dst_entry *ndst; in vxlan6_get_route() local
2464 ndst = dst_cache_get_ip6(dst_cache, saddr); in vxlan6_get_route()
2465 if (ndst) in vxlan6_get_route()
2466 return ndst; in vxlan6_get_route()
2479 ndst = ipv6_stub->ipv6_dst_lookup_flow(vxlan->net, sock6->sock->sk, in vxlan6_get_route()
2481 if (unlikely(IS_ERR(ndst))) { in vxlan6_get_route()
2486 if (unlikely(ndst->dev == dev)) { in vxlan6_get_route()
2488 dst_release(ndst); in vxlan6_get_route()
2494 dst_cache_set_ip6(dst_cache, ndst, saddr); in vxlan6_get_route()
2495 return ndst; in vxlan6_get_route()
2603 struct dst_entry *ndst = NULL; in vxlan_xmit_one() local
2722 ndst = &rt->dst; in vxlan_xmit_one()
2723 err = skb_tunnel_check_pmtu(skb, ndst, VXLAN_HEADROOM, in vxlan_xmit_one()
2742 dst_release(ndst); in vxlan_xmit_one()
2748 err = vxlan_build_skb(skb, ndst, sizeof(struct iphdr), in vxlan_xmit_one()
2763 ndst = vxlan6_get_route(vxlan, dev, sock6, skb, ifindex, tos, in vxlan_xmit_one()
2768 if (IS_ERR(ndst)) { in vxlan_xmit_one()
2769 err = PTR_ERR(ndst); in vxlan_xmit_one()
2770 ndst = NULL; in vxlan_xmit_one()
2775 u32 rt6i_flags = ((struct rt6_info *)ndst)->rt6i_flags; in vxlan_xmit_one()
2779 ndst, rt6i_flags); in vxlan_xmit_one()
2784 err = skb_tunnel_check_pmtu(skb, ndst, VXLAN6_HEADROOM, in vxlan_xmit_one()
2804 dst_release(ndst); in vxlan_xmit_one()
2809 ttl = ttl ? : ip6_dst_hoplimit(ndst); in vxlan_xmit_one()
2811 err = vxlan_build_skb(skb, ndst, sizeof(struct ipv6hdr), in vxlan_xmit_one()
2816 udp_tunnel6_xmit_skb(ndst, sock6->sock->sk, skb, dev, in vxlan_xmit_one()
2837 dst_release(ndst); in vxlan_xmit_one()
3201 struct dst_entry *ndst; in vxlan_fill_metadata_dst() local
3203 ndst = vxlan6_get_route(vxlan, dev, sock6, skb, 0, info->key.tos, in vxlan_fill_metadata_dst()
3207 if (IS_ERR(ndst)) in vxlan_fill_metadata_dst()
3208 return PTR_ERR(ndst); in vxlan_fill_metadata_dst()
3209 dst_release(ndst); in vxlan_fill_metadata_dst()