summaryrefslogtreecommitdiffstats
path: root/include/net/dst.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-01-28 14:05:05 -0800
committerDavid S. Miller <davem@davemloft.net>2011-01-28 14:05:05 -0800
commit725d1e1b457dc2bbebb337677e73efe7c6d14da5 (patch)
treeb001a08feeff741963d8232ecb26e5c1a75efb92 /include/net/dst.h
parent9c150e82ac50a611237bbebd508d17f6347d577c (diff)
downloadop-kernel-dev-725d1e1b457dc2bbebb337677e73efe7c6d14da5.zip
op-kernel-dev-725d1e1b457dc2bbebb337677e73efe7c6d14da5.tar.gz
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>
Diffstat (limited to 'include/net/dst.h')
-rw-r--r--include/net/dst.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dst.h b/include/net/dst.h
index 94a8c23..484f80b 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -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) \
OpenPOWER on IntegriCloud