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