Home
last modified time | relevance | path

Searched refs:dst_metrics (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/net/ipv4/
Dmetrics.c69 struct dst_metrics *ip_fib_metrics_init(struct net *net, struct nlattr *fc_mx, in ip_fib_metrics_init()
73 struct dst_metrics *fib_metrics; in ip_fib_metrics_init()
77 return (struct dst_metrics *)&dst_default_metrics; in ip_fib_metrics_init()
/linux-6.1.9/net/core/
Ddst.c37 const struct dst_metrics dst_default_metrics = {
199 struct dst_metrics *p = kmalloc(sizeof(*p), GFP_ATOMIC); in dst_cow_metrics_generic()
202 struct dst_metrics *old_p = (struct dst_metrics *)__DST_METRICS_PTR(old); in dst_cow_metrics_generic()
213 p = (struct dst_metrics *)__DST_METRICS_PTR(prev); in dst_cow_metrics_generic()
221 BUILD_BUG_ON(offsetof(struct dst_metrics, metrics) != 0); in dst_cow_metrics_generic()
/linux-6.1.9/include/net/
Ddst.h83 struct dst_metrics { struct
87 extern const struct dst_metrics dst_default_metrics; argument
136 u32 *dst_metrics = dst_metrics_write_ptr(dest); in dst_copy_metrics() local
138 if (dst_metrics) { in dst_copy_metrics()
141 memcpy(dst_metrics, src_metrics, RTAX_MAX * sizeof(u32)); in dst_copy_metrics()
Dip.h490 struct dst_metrics *ip_fib_metrics_init(struct net *net, struct nlattr *fc_mx,
493 static inline void ip_fib_metrics_put(struct dst_metrics *fib_metrics) in ip_fib_metrics_put()
502 void ip_dst_init_metrics(struct dst_entry *dst, struct dst_metrics *fib_metrics) in ip_dst_init_metrics()
515 struct dst_metrics *p = (struct dst_metrics *)DST_METRICS_PTR(dst); in ip_dst_metrics_put()
Dip6_fib.h182 struct dst_metrics *fib6_metrics;
Dip_fib.h149 struct dst_metrics *fib_metrics;
/linux-6.1.9/net/ipv6/
Dip6_fib.c721 struct dst_metrics *p = kzalloc(sizeof(*p), GFP_ATOMIC); in fib6_metric_set()
Droute.c291 .fib6_metrics = (struct dst_metrics *)&dst_default_metrics,
3758 rt->fib6_metrics = (struct dst_metrics *)&dst_default_metrics; in ip6_route_info_create()