Lines Matching refs:dst
216 const struct dst_entry *dst = skb_dst(skb); in skb_rt6_info() local
219 if (dst) in skb_rt6_info()
220 rt6 = container_of(dst, struct rt6_info, dst); in skb_rt6_info()
228 static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst, in ip6_dst_store() argument
234 np->dst_cookie = rt6_get_cookie((struct rt6_info *)dst); in ip6_dst_store()
235 sk_setup_caps(sk, dst); in ip6_dst_store()
242 void ip6_sk_dst_store_flow(struct sock *sk, struct dst_entry *dst,
252 static inline bool ipv6_anycast_destination(const struct dst_entry *dst, in ipv6_anycast_destination() argument
255 struct rt6_info *rt = (struct rt6_info *)dst; in ipv6_anycast_destination()
270 const struct dst_entry *dst = skb_dst(skb); in ip6_skb_dst_mtu() local
274 mtu = READ_ONCE(dst->dev->mtu); in ip6_skb_dst_mtu()
275 mtu -= lwtunnel_headroom(dst->lwtstate, mtu); in ip6_skb_dst_mtu()
277 mtu = dst_mtu(dst); in ip6_skb_dst_mtu()
319 static inline unsigned int ip6_dst_mtu_maybe_forward(const struct dst_entry *dst, in ip6_dst_mtu_maybe_forward() argument
325 if (!forwarding || dst_metric_locked(dst, RTAX_MTU)) { in ip6_dst_mtu_maybe_forward()
326 mtu = dst_metric_raw(dst, RTAX_MTU); in ip6_dst_mtu_maybe_forward()
333 idev = __in6_dev_get(dst->dev); in ip6_dst_mtu_maybe_forward()
339 return mtu - lwtunnel_headroom(dst->lwtstate, mtu); in ip6_dst_mtu_maybe_forward()