Home
last modified time | relevance | path

Searched refs:fib_metrics (Results 1 – 3 of 3) sorted by relevance

/net/ipv4/
Dmetrics.c70 struct dst_metrics *fib_metrics; in ip_fib_metrics_init() local
76 fib_metrics = kzalloc(sizeof(*fib_metrics), GFP_KERNEL); in ip_fib_metrics_init()
77 if (unlikely(!fib_metrics)) in ip_fib_metrics_init()
80 err = ip_metrics_convert(net, fc_mx, fc_mx_len, fib_metrics->metrics, in ip_fib_metrics_init()
83 refcount_set(&fib_metrics->refcnt, 1); in ip_fib_metrics_init()
85 kfree(fib_metrics); in ip_fib_metrics_init()
86 fib_metrics = ERR_PTR(err); in ip_fib_metrics_init()
89 return fib_metrics; in ip_fib_metrics_init()
Dfib_semantics.c245 ip_fib_metrics_put(fi->fib_metrics); in free_fib_info_rcu()
429 memcmp(nfi->fib_metrics, fi->fib_metrics, in fib_find_info()
1040 fi_val = fi->fib_metrics->metrics[type - 1]; in fib_metrics_match()
1462 fi->fib_metrics = ip_fib_metrics_init(fi->fib_net, cfg->fc_mx, in fib_create_info()
1464 if (IS_ERR(fi->fib_metrics)) { in fib_create_info()
1465 err = PTR_ERR(fi->fib_metrics); in fib_create_info()
1815 if (rtnetlink_put_metrics(skb, fi->fib_metrics->metrics) < 0) in fib_dump_info()
Droute.c1396 fi->fib_metrics->metrics[RTAX_LOCK - 1] & (1 << RTAX_MTU)) in ip_mtu_from_fib_result()
1583 ip_dst_init_metrics(&rt->dst, fi->fib_metrics); in rt_set_nexthop()