Searched refs:dst_metrics (Results 1 – 8 of 8) sorted by relevance
/linux-6.3-rc2/net/ipv4/ |
A 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.3-rc2/net/core/ |
A D | dst.c | 37 const struct dst_metrics dst_default_metrics = { 195 struct dst_metrics *p = kmalloc(sizeof(*p), GFP_ATOMIC); in dst_cow_metrics_generic() 198 struct dst_metrics *old_p = (struct dst_metrics *)__DST_METRICS_PTR(old); in dst_cow_metrics_generic() 209 p = (struct dst_metrics *)__DST_METRICS_PTR(prev); in dst_cow_metrics_generic() 217 BUILD_BUG_ON(offsetof(struct dst_metrics, metrics) != 0); in dst_cow_metrics_generic()
|
/linux-6.3-rc2/include/net/ |
A 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()
|
A D | ip.h | 491 struct dst_metrics *ip_fib_metrics_init(struct net *net, struct nlattr *fc_mx, 494 static inline void ip_fib_metrics_put(struct dst_metrics *fib_metrics) in ip_fib_metrics_put() 503 void ip_dst_init_metrics(struct dst_entry *dst, struct dst_metrics *fib_metrics) in ip_dst_init_metrics() 516 struct dst_metrics *p = (struct dst_metrics *)DST_METRICS_PTR(dst); in ip_dst_metrics_put()
|
A D | ip6_fib.h | 182 struct dst_metrics *fib6_metrics;
|
A D | ip_fib.h | 149 struct dst_metrics *fib_metrics;
|
/linux-6.3-rc2/net/ipv6/ |
A D | ip6_fib.c | 720 struct dst_metrics *p = kzalloc(sizeof(*p), GFP_ATOMIC); in fib6_metric_set()
|
A D | route.c | 291 .fib6_metrics = (struct dst_metrics *)&dst_default_metrics, 3751 rt->fib6_metrics = (struct dst_metrics *)&dst_default_metrics; in ip6_route_info_create()
|
Completed in 30 milliseconds