diff options
author | David S. Miller <davem@davemloft.net> | 2011-01-28 17:01:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-28 17:01:25 -0500 |
commit | 9c150e82ac50a611237bbebd508d17f6347d577c (patch) | |
tree | 7c79c013857cc13570595e805de0dbdb8f00332e /include/net/ip_fib.h | |
parent | a4daad6b0923030fbd3b00a01f570e4c3eef446b (diff) |
ipv4: Allocate fib metrics dynamically.
This is the initial gateway towards super-sharing metrics
if they are all set to zero for a route.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r-- | include/net/ip_fib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index 65d1fcdbc63b..2c0508a6e07c 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h | |||
@@ -77,7 +77,7 @@ struct fib_info { | |||
77 | int fib_protocol; | 77 | int fib_protocol; |
78 | __be32 fib_prefsrc; | 78 | __be32 fib_prefsrc; |
79 | u32 fib_priority; | 79 | u32 fib_priority; |
80 | u32 fib_metrics[RTAX_MAX]; | 80 | u32 *fib_metrics; |
81 | #define fib_mtu fib_metrics[RTAX_MTU-1] | 81 | #define fib_mtu fib_metrics[RTAX_MTU-1] |
82 | #define fib_window fib_metrics[RTAX_WINDOW-1] | 82 | #define fib_window fib_metrics[RTAX_WINDOW-1] |
83 | #define fib_rtt fib_metrics[RTAX_RTT-1] | 83 | #define fib_rtt fib_metrics[RTAX_RTT-1] |