Home
last modified time | relevance | path

Searched refs:metrics (Results 1 – 10 of 10) sorted by relevance

/net/ipv4/
Dmetrics.c11 int fc_mx_len, u32 *metrics, in ip_metrics_convert() argument
57 metrics[type - 1] = val; in ip_metrics_convert()
61 metrics[RTAX_FEATURES - 1] |= DST_FEATURE_ECN_CA; in ip_metrics_convert()
80 err = ip_metrics_convert(net, fc_mx, fc_mx_len, fib_metrics->metrics, in ip_fib_metrics_init()
DMakefile17 metrics.o netlink.o nexthop.o udp_tunnel_stub.o
Dinetpeer.c219 p->metrics[RTAX_LOCK-1] = INETPEER_METRICS_NEW; in inet_getpeer()
Droute.c1396 fi->fib_metrics->metrics[RTAX_LOCK - 1] & (1 << RTAX_MTU)) in ip_mtu_from_fib_result()
2941 u32 metrics[RTAX_MAX]; in rt_fill_info() local
3016 memcpy(metrics, dst_metrics_ptr(&rt->dst), sizeof(metrics)); in rt_fill_info()
3018 metrics[RTAX_MTU - 1] = rt->rt_pmtu; in rt_fill_info()
3020 metrics[RTAX_LOCK - 1] |= BIT(RTAX_MTU); in rt_fill_info()
3021 if (rtnetlink_put_metrics(skb, metrics) < 0) in rt_fill_info()
Dfib_semantics.c1040 fi_val = fi->fib_metrics->metrics[type - 1]; in fib_metrics_match()
1815 if (rtnetlink_put_metrics(skb, fi->fib_metrics->metrics) < 0) in fib_dump_info()
/net/core/
Ddst.c54 dst_init_metrics(dst, dst_default_metrics.metrics, true); in dst_init()
187 memcpy(p->metrics, old_p->metrics, sizeof(p->metrics)); in dst_cow_metrics_generic()
202 BUILD_BUG_ON(offsetof(struct dst_metrics, metrics) != 0); in dst_cow_metrics_generic()
Drtnetlink.c783 int rtnetlink_put_metrics(struct sk_buff *skb, u32 *metrics) in rtnetlink_put_metrics() argument
789 if (metrics == dst_default_metrics.metrics) in rtnetlink_put_metrics()
797 if (metrics[i]) { in rtnetlink_put_metrics()
801 name = tcp_ca_get_name_by_key(metrics[i], tmp); in rtnetlink_put_metrics()
807 u32 user_features = metrics[i] & RTAX_FEATURE_MASK; in rtnetlink_put_metrics()
815 if (nla_put_u32(skb, i + 1, metrics[i])) in rtnetlink_put_metrics()
/net/mctp/
Droute.c1303 void *metrics; in mctp_fill_rtinfo() local
1326 metrics = nla_nest_start_noflag(skb, RTA_METRICS); in mctp_fill_rtinfo()
1327 if (!metrics) in mctp_fill_rtinfo()
1335 nla_nest_end(skb, metrics); in mctp_fill_rtinfo()
/net/ipv6/
Dip6_fib.c729 f6i->fib6_metrics->metrics[metric - 1] = val; in fib6_metric_set()
Droute.c5670 pmetrics = dst ? dst_metrics_ptr(dst) : rt->fib6_metrics->metrics; in rt6_fill_node()