diff options
author | David S. Miller <davem@davemloft.net> | 2011-01-28 23:05:05 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-28 23:05:05 +0100 |
commit | 725d1e1b457dc2bbebb337677e73efe7c6d14da5 (patch) | |
tree | b001a08feeff741963d8232ecb26e5c1a75efb92 /net/core | |
parent | ipv4: Allocate fib metrics dynamically. (diff) | |
download | linux-725d1e1b457dc2bbebb337677e73efe7c6d14da5.tar.xz linux-725d1e1b457dc2bbebb337677e73efe7c6d14da5.zip |
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 'net/core')
-rw-r--r-- | net/core/dst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dst.c b/net/core/dst.c index 578893505702..c1674fde827d 100644 --- a/net/core/dst.c +++ b/net/core/dst.c @@ -164,7 +164,7 @@ int dst_discard(struct sk_buff *skb) } EXPORT_SYMBOL(dst_discard); -static const u32 dst_default_metrics[RTAX_MAX]; +const u32 dst_default_metrics[RTAX_MAX]; void *dst_alloc(struct dst_ops *ops) { |