Lines Matching refs:f6i
225 struct fib6_info *f6i; member
249 static inline void fib6_clean_expires(struct fib6_info *f6i) in fib6_clean_expires() argument
251 f6i->fib6_flags &= ~RTF_EXPIRES; in fib6_clean_expires()
252 f6i->expires = 0; in fib6_clean_expires()
255 static inline void fib6_set_expires(struct fib6_info *f6i, in fib6_set_expires() argument
258 f6i->expires = expires; in fib6_set_expires()
259 f6i->fib6_flags |= RTF_EXPIRES; in fib6_set_expires()
262 static inline bool fib6_check_expired(const struct fib6_info *f6i) in fib6_check_expired() argument
264 if (f6i->fib6_flags & RTF_EXPIRES) in fib6_check_expired()
265 return time_after(jiffies, f6i->expires); in fib6_check_expired()
274 static inline bool fib6_get_cookie_safe(const struct fib6_info *f6i, in fib6_get_cookie_safe() argument
280 fn = rcu_dereference(f6i->fib6_node); in fib6_get_cookie_safe()
323 static inline void fib6_info_hold(struct fib6_info *f6i) in fib6_info_hold() argument
325 refcount_inc(&f6i->fib6_ref); in fib6_info_hold()
328 static inline bool fib6_info_hold_safe(struct fib6_info *f6i) in fib6_info_hold_safe() argument
330 return refcount_inc_not_zero(&f6i->fib6_ref); in fib6_info_hold_safe()
333 static inline void fib6_info_release(struct fib6_info *f6i) in fib6_info_release() argument
335 if (f6i && refcount_dec_and_test(&f6i->fib6_ref)) in fib6_info_release()
336 call_rcu(&f6i->rcu, fib6_info_destroy_rcu); in fib6_info_release()
339 static inline void fib6_info_hw_flags_set(struct fib6_info *f6i, bool offload, in fib6_info_hw_flags_set() argument
342 f6i->offload = offload; in fib6_info_hw_flags_set()
343 f6i->trap = trap; in fib6_info_hw_flags_set()
541 void fib6_update_sernum_stub(struct net *net, struct fib6_info *f6i);
543 void fib6_metric_set(struct fib6_info *f6i, int metric, u32 val);
544 static inline bool fib6_metric_locked(struct fib6_info *f6i, int metric) in fib6_metric_locked() argument
546 return !!(f6i->fib6_metrics->metrics[RTAX_LOCK - 1] & (1 << metric)); in fib6_metric_locked()