Searched refs:metric (Results 1 – 3 of 3) sorted by relevance
161 dst_metric_raw(const struct dst_entry *dst, const int metric) in dst_metric_raw() argument165 return p[metric-1]; in dst_metric_raw()169 dst_metric(const struct dst_entry *dst, const int metric) in dst_metric() argument171 WARN_ON_ONCE(metric == RTAX_HOPLIMIT || in dst_metric()172 metric == RTAX_ADVMSS || in dst_metric()173 metric == RTAX_MTU); in dst_metric()174 return dst_metric_raw(dst, metric); in dst_metric()188 static inline void dst_metric_set(struct dst_entry *dst, int metric, u32 val) in dst_metric_set() argument193 p[metric-1] = val; in dst_metric_set()214 static inline unsigned long dst_metric_rtt(const struct dst_entry *dst, int metric) in dst_metric_rtt() argument[all …]
465 void fib6_metric_set(struct fib6_info *f6i, int metric, u32 val);466 static inline bool fib6_metric_locked(struct fib6_info *f6i, int metric) in fib6_metric_locked() argument468 return !!(f6i->fib6_metrics->metrics[RTAX_LOCK - 1] & (1 << metric)); in fib6_metric_locked()
1436 u32 metric; member