Searched refs:fib_metrics (Results 1 – 3 of 3) sorted by relevance
146 struct dst_metrics *fib_metrics; member147 #define fib_mtu fib_metrics->metrics[RTAX_MTU-1]148 #define fib_window fib_metrics->metrics[RTAX_WINDOW-1]149 #define fib_rtt fib_metrics->metrics[RTAX_RTT-1]150 #define fib_advmss fib_metrics->metrics[RTAX_ADVMSS-1]
478 static inline void ip_fib_metrics_put(struct dst_metrics *fib_metrics) in ip_fib_metrics_put() argument480 if (fib_metrics != &dst_default_metrics && in ip_fib_metrics_put()481 refcount_dec_and_test(&fib_metrics->refcnt)) in ip_fib_metrics_put()482 kfree(fib_metrics); in ip_fib_metrics_put()487 void ip_dst_init_metrics(struct dst_entry *dst, struct dst_metrics *fib_metrics) in ip_dst_init_metrics() argument489 dst_init_metrics(dst, fib_metrics->metrics, true); in ip_dst_init_metrics()491 if (fib_metrics != &dst_default_metrics) { in ip_dst_init_metrics()493 refcount_inc(&fib_metrics->refcnt); in ip_dst_init_metrics()
39 __u32 fib_metrics[RTAX_MAX]; member