Lines Matching refs:f6i
229 struct fib6_info *f6i; member
253 static inline void fib6_clean_expires(struct fib6_info *f6i) in fib6_clean_expires() argument
255 f6i->fib6_flags &= ~RTF_EXPIRES; in fib6_clean_expires()
256 f6i->expires = 0; in fib6_clean_expires()
259 static inline void fib6_set_expires(struct fib6_info *f6i, in fib6_set_expires() argument
262 f6i->expires = expires; in fib6_set_expires()
263 f6i->fib6_flags |= RTF_EXPIRES; in fib6_set_expires()
266 static inline bool fib6_check_expired(const struct fib6_info *f6i) in fib6_check_expired() argument
268 if (f6i->fib6_flags & RTF_EXPIRES) in fib6_check_expired()
269 return time_after(jiffies, f6i->expires); in fib6_check_expired()
278 static inline bool fib6_get_cookie_safe(const struct fib6_info *f6i, in fib6_get_cookie_safe() argument
284 fn = rcu_dereference(f6i->fib6_node); in fib6_get_cookie_safe()
327 static inline void fib6_info_hold(struct fib6_info *f6i) in fib6_info_hold() argument
329 refcount_inc(&f6i->fib6_ref); in fib6_info_hold()
332 static inline bool fib6_info_hold_safe(struct fib6_info *f6i) in fib6_info_hold_safe() argument
334 return refcount_inc_not_zero(&f6i->fib6_ref); in fib6_info_hold_safe()
337 static inline void fib6_info_release(struct fib6_info *f6i) in fib6_info_release() argument
339 if (f6i && refcount_dec_and_test(&f6i->fib6_ref)) in fib6_info_release()
340 call_rcu(&f6i->rcu, fib6_info_destroy_rcu); in fib6_info_release()
538 void fib6_update_sernum_stub(struct net *net, struct fib6_info *f6i);
540 void fib6_metric_set(struct fib6_info *f6i, int metric, u32 val);
541 static inline bool fib6_metric_locked(struct fib6_info *f6i, int metric) in fib6_metric_locked() argument
543 return !!(f6i->fib6_metrics->metrics[RTAX_LOCK - 1] & (1 << metric)); in fib6_metric_locked()
545 void fib6_info_hw_flags_set(struct net *net, struct fib6_info *f6i,