Lines Matching refs:dst_entry
25 struct dst_entry { struct
89 u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old); argument
98 static inline bool dst_metrics_read_only(const struct dst_entry *dst) in dst_metrics_read_only()
103 void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old);
105 static inline void dst_destroy_metrics_generic(struct dst_entry *dst) in dst_destroy_metrics_generic()
112 static inline u32 *dst_metrics_write_ptr(struct dst_entry *dst) in dst_metrics_write_ptr()
126 static inline void dst_init_metrics(struct dst_entry *dst, in dst_init_metrics()
134 static inline void dst_copy_metrics(struct dst_entry *dest, const struct dst_entry *src) in dst_copy_metrics()
145 static inline u32 *dst_metrics_ptr(struct dst_entry *dst) in dst_metrics_ptr()
151 dst_metric_raw(const struct dst_entry *dst, const int metric) in dst_metric_raw()
159 dst_metric(const struct dst_entry *dst, const int metric) in dst_metric()
168 dst_metric_advmss(const struct dst_entry *dst) in dst_metric_advmss()
178 static inline void dst_metric_set(struct dst_entry *dst, int metric, u32 val) in dst_metric_set()
193 dst_feature(const struct dst_entry *dst, u32 feature) in dst_feature()
198 INDIRECT_CALLABLE_DECLARE(unsigned int ip6_mtu(const struct dst_entry *));
199 INDIRECT_CALLABLE_DECLARE(unsigned int ipv4_mtu(const struct dst_entry *));
200 static inline u32 dst_mtu(const struct dst_entry *dst) in dst_mtu()
206 static inline unsigned long dst_metric_rtt(const struct dst_entry *dst, int metric) in dst_metric_rtt()
212 dst_allfrag(const struct dst_entry *dst) in dst_allfrag()
219 dst_metric_locked(const struct dst_entry *dst, int metric) in dst_metric_locked()
224 static inline void dst_hold(struct dst_entry *dst) in dst_hold()
230 BUILD_BUG_ON(offsetof(struct dst_entry, __refcnt) & 63); in dst_hold()
234 static inline void dst_use_noref(struct dst_entry *dst, unsigned long time) in dst_use_noref()
242 static inline struct dst_entry *dst_clone(struct dst_entry *dst) in dst_clone()
249 void dst_release(struct dst_entry *dst);
251 void dst_release_immediate(struct dst_entry *dst);
256 dst_release((struct dst_entry *)(refdst & SKB_DST_PTRMASK)); in refdst_drop()
293 static inline bool dst_hold_safe(struct dst_entry *dst) in dst_hold_safe()
308 struct dst_entry *dst = skb_dst(skb); in skb_dst_force()
367 const struct dst_entry *dst; in dst_tclassid()
383 void dst_init(struct dst_entry *dst, struct dst_ops *ops,
386 struct dst_entry *dst_destroy(struct dst_entry *dst);
387 void dst_dev_put(struct dst_entry *dst);
389 static inline void dst_confirm(struct dst_entry *dst) in dst_confirm()
393 static inline struct neighbour *dst_neigh_lookup(const struct dst_entry *dst, const void *daddr) in dst_neigh_lookup()
399 static inline struct neighbour *dst_neigh_lookup_skb(const struct dst_entry *dst, in dst_neigh_lookup_skb()
412 static inline void dst_confirm_neigh(const struct dst_entry *dst, in dst_confirm_neigh()
421 struct dst_entry *dst = skb_dst(skb); in dst_link_failure()
426 static inline void dst_set_expires(struct dst_entry *dst, int timeout) in dst_set_expires()
458 INDIRECT_CALLABLE_DECLARE(struct dst_entry *ip6_dst_check(struct dst_entry *,
460 INDIRECT_CALLABLE_DECLARE(struct dst_entry *ipv4_dst_check(struct dst_entry *,
462 static inline struct dst_entry *dst_check(struct dst_entry *dst, u32 cookie) in dst_check()
479 static inline struct dst_entry *xfrm_lookup(struct net *net, in xfrm_lookup()
480 struct dst_entry *dst_orig, in xfrm_lookup()
488 static inline struct dst_entry *
489 xfrm_lookup_with_ifid(struct net *net, struct dst_entry *dst_orig, in xfrm_lookup_with_ifid()
496 static inline struct dst_entry *xfrm_lookup_route(struct net *net, in xfrm_lookup_route()
497 struct dst_entry *dst_orig, in xfrm_lookup_route()
505 static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst) in dst_xfrm()
511 struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig,
515 struct dst_entry *xfrm_lookup_with_ifid(struct net *net,
516 struct dst_entry *dst_orig,
521 struct dst_entry *xfrm_lookup_route(struct net *net, struct dst_entry *dst_orig,
526 static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst) in dst_xfrm()
534 struct dst_entry *dst = skb_dst(skb); in skb_dst_update_pmtu()
543 struct dst_entry *dst = skb_dst(skb); in skb_dst_update_pmtu_no_confirm()
549 struct dst_entry *dst_blackhole_check(struct dst_entry *dst, u32 cookie);
550 void dst_blackhole_update_pmtu(struct dst_entry *dst, struct sock *sk,
552 void dst_blackhole_redirect(struct dst_entry *dst, struct sock *sk,
554 u32 *dst_blackhole_cow_metrics(struct dst_entry *dst, unsigned long old);
555 struct neighbour *dst_blackhole_neigh_lookup(const struct dst_entry *dst,
558 unsigned int dst_blackhole_mtu(const struct dst_entry *dst);