Lines Matching defs:metric
165 dst_metric_raw(const struct dst_entry *dst, const int metric)
169 return p[metric-1];
173 dst_metric(const struct dst_entry *dst, const int metric)
175 WARN_ON_ONCE(metric == RTAX_HOPLIMIT ||
176 metric == RTAX_ADVMSS ||
177 metric == RTAX_MTU);
178 return dst_metric_raw(dst, metric);
192 static inline void dst_metric_set(struct dst_entry *dst, int metric, u32 val)
197 p[metric-1] = val;
220 static inline unsigned long dst_metric_rtt(const struct dst_entry *dst, int metric)
222 return msecs_to_jiffies(dst_metric(dst, metric));
226 dst_metric_locked(const struct dst_entry *dst, int metric)
228 return dst_metric(dst, RTAX_LOCK) & (1 << metric);