Searched refs:dst_metrics (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/net/ipv4/ |
D | metrics.c | 69 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/ |
D | dst.c | 37 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/ |
D | dst.h | 83 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()
|
D | ip.h | 490 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()
|
D | ip6_fib.h | 182 struct dst_metrics *fib6_metrics;
|
D | ip_fib.h | 149 struct dst_metrics *fib_metrics;
|
/linux-6.1.9/net/ipv6/ |
D | ip6_fib.c | 721 struct dst_metrics *p = kzalloc(sizeof(*p), GFP_ATOMIC); in fib6_metric_set()
|
D | route.c | 291 .fib6_metrics = (struct dst_metrics *)&dst_default_metrics, 3758 rt->fib6_metrics = (struct dst_metrics *)&dst_default_metrics; in ip6_route_info_create()
|