Lines Matching refs:f6i
226 struct fib6_info *f6i; member
250 static inline void fib6_clean_expires(struct fib6_info *f6i) in fib6_clean_expires() argument
252 f6i->fib6_flags &= ~RTF_EXPIRES; in fib6_clean_expires()
253 f6i->expires = 0; in fib6_clean_expires()
256 static inline void fib6_set_expires(struct fib6_info *f6i, in fib6_set_expires() argument
259 f6i->expires = expires; in fib6_set_expires()
260 f6i->fib6_flags |= RTF_EXPIRES; in fib6_set_expires()
263 static inline bool fib6_check_expired(const struct fib6_info *f6i) in fib6_check_expired() argument
265 if (f6i->fib6_flags & RTF_EXPIRES) in fib6_check_expired()
266 return time_after(jiffies, f6i->expires); in fib6_check_expired()
275 static inline bool fib6_get_cookie_safe(const struct fib6_info *f6i, in fib6_get_cookie_safe() argument
281 fn = rcu_dereference(f6i->fib6_node); in fib6_get_cookie_safe()
324 static inline void fib6_info_hold(struct fib6_info *f6i) in fib6_info_hold() argument
326 refcount_inc(&f6i->fib6_ref); in fib6_info_hold()
329 static inline bool fib6_info_hold_safe(struct fib6_info *f6i) in fib6_info_hold_safe() argument
331 return refcount_inc_not_zero(&f6i->fib6_ref); in fib6_info_hold_safe()
334 static inline void fib6_info_release(struct fib6_info *f6i) in fib6_info_release() argument
336 if (f6i && refcount_dec_and_test(&f6i->fib6_ref)) in fib6_info_release()
337 call_rcu(&f6i->rcu, fib6_info_destroy_rcu); in fib6_info_release()
536 void fib6_update_sernum_stub(struct net *net, struct fib6_info *f6i);
538 void fib6_metric_set(struct fib6_info *f6i, int metric, u32 val);
539 static inline bool fib6_metric_locked(struct fib6_info *f6i, int metric) in fib6_metric_locked() argument
541 return !!(f6i->fib6_metrics->metrics[RTAX_LOCK - 1] & (1 << metric)); in fib6_metric_locked()
543 void fib6_info_hw_flags_set(struct net *net, struct fib6_info *f6i,