Searched refs:dst_metrics (Results 1 – 8 of 8) sorted by relevance
/linux-6.6.21/net/ipv4/ |
D | metrics.c | 66 struct dst_metrics *ip_fib_metrics_init(struct net *net, struct nlattr *fc_mx, in ip_fib_metrics_init() 70 struct dst_metrics *fib_metrics; in ip_fib_metrics_init() 74 return (struct dst_metrics *)&dst_default_metrics; in ip_fib_metrics_init()
|
/linux-6.6.21/net/core/ |
D | dst.c | 37 const struct dst_metrics dst_default_metrics = { 180 struct dst_metrics *p = kmalloc(sizeof(*p), GFP_ATOMIC); in dst_cow_metrics_generic() 183 struct dst_metrics *old_p = (struct dst_metrics *)__DST_METRICS_PTR(old); in dst_cow_metrics_generic() 194 p = (struct dst_metrics *)__DST_METRICS_PTR(prev); in dst_cow_metrics_generic() 202 BUILD_BUG_ON(offsetof(struct dst_metrics, metrics) != 0); in dst_cow_metrics_generic()
|
/linux-6.6.21/include/net/ |
D | dst.h | 97 struct dst_metrics { struct 101 extern const struct dst_metrics dst_default_metrics; argument 150 u32 *dst_metrics = dst_metrics_write_ptr(dest); in dst_copy_metrics() local 152 if (dst_metrics) { in dst_copy_metrics() 155 memcpy(dst_metrics, src_metrics, RTAX_MAX * sizeof(u32)); in dst_copy_metrics()
|
D | ip.h | 500 struct dst_metrics *ip_fib_metrics_init(struct net *net, struct nlattr *fc_mx, 503 static inline void ip_fib_metrics_put(struct dst_metrics *fib_metrics) in ip_fib_metrics_put() 512 void ip_dst_init_metrics(struct dst_entry *dst, struct dst_metrics *fib_metrics) in ip_dst_init_metrics() 525 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.6.21/net/ipv6/ |
D | ip6_fib.c | 720 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()
|