ipv4: Attach FIB info to dst_default_metrics when possible
If there are no explicit metrics attached to a route, hook fi->fib_info up to dst_default_metrics. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -97,6 +97,7 @@ struct dst_entry {
|
||||
#ifdef __KERNEL__
|
||||
|
||||
extern u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old);
|
||||
extern const u32 dst_default_metrics[RTAX_MAX];
|
||||
|
||||
#define DST_METRICS_READ_ONLY 0x1UL
|
||||
#define __DST_METRICS_PTR(Y) \
|
||||
|
Reference in New Issue
Block a user