Lines Matching refs:ndst
2453 struct dst_entry *ndst; in vxlan6_get_route() local
2462 ndst = dst_cache_get_ip6(dst_cache, saddr); in vxlan6_get_route()
2463 if (ndst) in vxlan6_get_route()
2464 return ndst; in vxlan6_get_route()
2477 ndst = ipv6_stub->ipv6_dst_lookup_flow(vxlan->net, sock6->sock->sk, in vxlan6_get_route()
2479 if (unlikely(IS_ERR(ndst))) { in vxlan6_get_route()
2484 if (unlikely(ndst->dev == dev)) { in vxlan6_get_route()
2486 dst_release(ndst); in vxlan6_get_route()
2492 dst_cache_set_ip6(dst_cache, ndst, saddr); in vxlan6_get_route()
2493 return ndst; in vxlan6_get_route()
2601 struct dst_entry *ndst = NULL; in vxlan_xmit_one() local
2720 ndst = &rt->dst; in vxlan_xmit_one()
2721 err = skb_tunnel_check_pmtu(skb, ndst, VXLAN_HEADROOM, in vxlan_xmit_one()
2735 dst_release(ndst); in vxlan_xmit_one()
2741 err = vxlan_build_skb(skb, ndst, sizeof(struct iphdr), in vxlan_xmit_one()
2756 ndst = vxlan6_get_route(vxlan, dev, sock6, skb, ifindex, tos, in vxlan_xmit_one()
2761 if (IS_ERR(ndst)) { in vxlan_xmit_one()
2762 err = PTR_ERR(ndst); in vxlan_xmit_one()
2763 ndst = NULL; in vxlan_xmit_one()
2768 u32 rt6i_flags = ((struct rt6_info *)ndst)->rt6i_flags; in vxlan_xmit_one()
2772 ndst, rt6i_flags); in vxlan_xmit_one()
2777 err = skb_tunnel_check_pmtu(skb, ndst, VXLAN6_HEADROOM, in vxlan_xmit_one()
2792 dst_release(ndst); in vxlan_xmit_one()
2797 ttl = ttl ? : ip6_dst_hoplimit(ndst); in vxlan_xmit_one()
2799 err = vxlan_build_skb(skb, ndst, sizeof(struct ipv6hdr), in vxlan_xmit_one()
2804 udp_tunnel6_xmit_skb(ndst, sock6->sock->sk, skb, dev, in vxlan_xmit_one()
2825 dst_release(ndst); in vxlan_xmit_one()
3189 struct dst_entry *ndst; in vxlan_fill_metadata_dst() local
3191 ndst = vxlan6_get_route(vxlan, dev, sock6, skb, 0, info->key.tos, in vxlan_fill_metadata_dst()
3195 if (IS_ERR(ndst)) in vxlan_fill_metadata_dst()
3196 return PTR_ERR(ndst); in vxlan_fill_metadata_dst()
3197 dst_release(ndst); in vxlan_fill_metadata_dst()