Lines Matching refs:f6i

235 	struct fib6_info	*f6i;  member
259 static inline void fib6_clean_expires(struct fib6_info *f6i) in fib6_clean_expires() argument
261 f6i->fib6_flags &= ~RTF_EXPIRES; in fib6_clean_expires()
262 f6i->expires = 0; in fib6_clean_expires()
265 static inline void fib6_set_expires(struct fib6_info *f6i, in fib6_set_expires() argument
268 f6i->expires = expires; in fib6_set_expires()
269 f6i->fib6_flags |= RTF_EXPIRES; in fib6_set_expires()
272 static inline bool fib6_check_expired(const struct fib6_info *f6i) in fib6_check_expired() argument
274 if (f6i->fib6_flags & RTF_EXPIRES) in fib6_check_expired()
275 return time_after(jiffies, f6i->expires); in fib6_check_expired()
284 static inline bool fib6_get_cookie_safe(const struct fib6_info *f6i, in fib6_get_cookie_safe() argument
290 fn = rcu_dereference(f6i->fib6_node); in fib6_get_cookie_safe()
333 static inline void fib6_info_hold(struct fib6_info *f6i) in fib6_info_hold() argument
335 refcount_inc(&f6i->fib6_ref); in fib6_info_hold()
338 static inline bool fib6_info_hold_safe(struct fib6_info *f6i) in fib6_info_hold_safe() argument
340 return refcount_inc_not_zero(&f6i->fib6_ref); in fib6_info_hold_safe()
343 static inline void fib6_info_release(struct fib6_info *f6i) in fib6_info_release() argument
345 if (f6i && refcount_dec_and_test(&f6i->fib6_ref)) in fib6_info_release()
346 call_rcu(&f6i->rcu, fib6_info_destroy_rcu); in fib6_info_release()
349 static inline void fib6_info_hw_flags_set(struct fib6_info *f6i, bool offload, in fib6_info_hw_flags_set() argument
352 f6i->offload = offload; in fib6_info_hw_flags_set()
353 f6i->trap = trap; in fib6_info_hw_flags_set()
551 void fib6_update_sernum_stub(struct net *net, struct fib6_info *f6i);
553 void fib6_metric_set(struct fib6_info *f6i, int metric, u32 val);
554 static inline bool fib6_metric_locked(struct fib6_info *f6i, int metric) in fib6_metric_locked() argument
556 return !!(f6i->fib6_metrics->metrics[RTAX_LOCK - 1] & (1 << metric)); in fib6_metric_locked()