Lines Matching refs:dst
102 !list_empty(&rt->dst.rt_uncached)) in ip6_rt_put_flags()
220 const struct dst_entry *dst = skb_dst(skb); in skb_rt6_info() local
222 if (dst) in skb_rt6_info()
223 return dst_rt6_info(dst); in skb_rt6_info()
231 static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst, in ip6_dst_store() argument
237 np->dst_cookie = rt6_get_cookie(dst_rt6_info(dst)); in ip6_dst_store()
238 sk_setup_caps(sk, dst); in ip6_dst_store()
245 void ip6_sk_dst_store_flow(struct sock *sk, struct dst_entry *dst,
255 static inline bool ipv6_anycast_destination(const struct dst_entry *dst, in ipv6_anycast_destination() argument
258 const struct rt6_info *rt = dst_rt6_info(dst); in ipv6_anycast_destination()
273 const struct dst_entry *dst = skb_dst(skb); in ip6_skb_dst_mtu() local
277 mtu = READ_ONCE(dst_dev(dst)->mtu); in ip6_skb_dst_mtu()
278 mtu -= lwtunnel_headroom(dst->lwtstate, mtu); in ip6_skb_dst_mtu()
280 mtu = dst_mtu(dst); in ip6_skb_dst_mtu()
326 static inline unsigned int ip6_dst_mtu_maybe_forward(const struct dst_entry *dst, in ip6_dst_mtu_maybe_forward() argument
332 if (!forwarding || dst_metric_locked(dst, RTAX_MTU)) { in ip6_dst_mtu_maybe_forward()
333 mtu = dst_metric_raw(dst, RTAX_MTU); in ip6_dst_mtu_maybe_forward()
340 idev = __in6_dev_get(dst_dev(dst)); in ip6_dst_mtu_maybe_forward()
346 return mtu - lwtunnel_headroom(dst->lwtstate, mtu); in ip6_dst_mtu_maybe_forward()