Searched refs:fib_metrics (Results 1 – 9 of 9) sorted by relevance
/linux/net/ipv4/ |
A D | metrics.c | 71 struct dst_metrics *fib_metrics; in ip_fib_metrics_init() local 77 fib_metrics = kzalloc(sizeof(*fib_metrics), GFP_KERNEL); in ip_fib_metrics_init() 78 if (unlikely(!fib_metrics)) in ip_fib_metrics_init() 81 err = ip_metrics_convert(net, fc_mx, fc_mx_len, fib_metrics->metrics, in ip_fib_metrics_init() 84 refcount_set(&fib_metrics->refcnt, 1); in ip_fib_metrics_init() 86 kfree(fib_metrics); in ip_fib_metrics_init() 87 fib_metrics = ERR_PTR(err); in ip_fib_metrics_init() 90 return fib_metrics; in ip_fib_metrics_init()
|
A D | fib_semantics.c | 241 ip_fib_metrics_put(fi->fib_metrics); in free_fib_info_rcu() 416 memcmp(nfi->fib_metrics, fi->fib_metrics, in fib_find_info() 1020 fi_val = fi->fib_metrics->metrics[type - 1]; in fib_metrics_match() 1457 fi->fib_metrics = ip_fib_metrics_init(fi->fib_net, cfg->fc_mx, in fib_create_info() 1459 if (IS_ERR(fi->fib_metrics)) { in fib_create_info() 1460 err = PTR_ERR(fi->fib_metrics); in fib_create_info() 1808 if (rtnetlink_put_metrics(skb, fi->fib_metrics->metrics) < 0) in fib_dump_info()
|
A D | route.c | 1387 fi->fib_metrics->metrics[RTAX_LOCK - 1] & (1 << RTAX_MTU)) in ip_mtu_from_fib_result() 1569 ip_dst_init_metrics(&rt->dst, fi->fib_metrics); in rt_set_nexthop()
|
/linux/include/net/ |
A D | ip.h | 492 static inline void ip_fib_metrics_put(struct dst_metrics *fib_metrics) in ip_fib_metrics_put() argument 494 if (fib_metrics != &dst_default_metrics && in ip_fib_metrics_put() 495 refcount_dec_and_test(&fib_metrics->refcnt)) in ip_fib_metrics_put() 496 kfree(fib_metrics); in ip_fib_metrics_put() 501 void ip_dst_init_metrics(struct dst_entry *dst, struct dst_metrics *fib_metrics) in ip_dst_init_metrics() argument 503 dst_init_metrics(dst, fib_metrics->metrics, true); in ip_dst_init_metrics() 505 if (fib_metrics != &dst_default_metrics) { in ip_dst_init_metrics() 507 refcount_inc(&fib_metrics->refcnt); in ip_dst_init_metrics()
|
A D | ip_fib.h | 146 struct dst_metrics *fib_metrics; member 147 #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]
|
A D | dn_fib.h | 39 __u32 fib_metrics[RTAX_MAX]; member
|
/linux/net/decnet/ |
A D | dn_fib.c | 141 memcmp(nfi->fib_metrics, fi->fib_metrics, sizeof(fi->fib_metrics)) == 0 && in dn_fib_find_info() 308 fi->fib_metrics[type-1] = nla_get_u32(attr); in dn_fib_create_info()
|
A D | dn_table.c | 334 if (rtnetlink_put_metrics(skb, fi->fib_metrics) < 0) in dn_fib_dump_info()
|
A D | dn_route.c | 879 dst_init_metrics(&rt->dst, fi->fib_metrics, true); in dn_rt_set_next_hop()
|
Completed in 29 milliseconds