diff options
author | David S. Miller <davem@davemloft.net> | 2011-01-28 17:05:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-28 17:05:05 -0500 |
commit | 725d1e1b457dc2bbebb337677e73efe7c6d14da5 (patch) | |
tree | b001a08feeff741963d8232ecb26e5c1a75efb92 /net/core | |
parent | 9c150e82ac50a611237bbebd508d17f6347d577c (diff) |
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) | |||
164 | } | 164 | } |
165 | EXPORT_SYMBOL(dst_discard); | 165 | EXPORT_SYMBOL(dst_discard); |
166 | 166 | ||
167 | static const u32 dst_default_metrics[RTAX_MAX]; | 167 | const u32 dst_default_metrics[RTAX_MAX]; |
168 | 168 | ||
169 | void *dst_alloc(struct dst_ops *ops) | 169 | void *dst_alloc(struct dst_ops *ops) |
170 | { | 170 | { |