diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2012-11-13 02:52:24 -0500 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2012-11-13 03:15:07 -0500 |
commit | 703fb94ec58e0e8769380c2877a8a34aeb5b6c97 (patch) | |
tree | 57bb3948dfe46f9dcd36b92ec4112408c7d5cc73 /net/ipv4/route.c | |
parent | a66fe1653f4e81c007a68ca975067432a42df05b (diff) |
xfrm: Fix the gc threshold value for ipv4
The xfrm gc threshold value depends on ip_rt_max_size. This
value was set to INT_MAX with the routing cache removal patch,
so we start doing garbage collecting when we have INT_MAX/2
IPsec routes cached. Fix this by going back to the static
threshold of 1024 routes.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index a8c651216fa6..200d287e49f5 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2597,7 +2597,7 @@ int __init ip_rt_init(void) | |||
2597 | pr_err("Unable to create route proc files\n"); | 2597 | pr_err("Unable to create route proc files\n"); |
2598 | #ifdef CONFIG_XFRM | 2598 | #ifdef CONFIG_XFRM |
2599 | xfrm_init(); | 2599 | xfrm_init(); |
2600 | xfrm4_init(ip_rt_max_size); | 2600 | xfrm4_init(); |
2601 | #endif | 2601 | #endif |
2602 | rtnl_register(PF_INET, RTM_GETROUTE, inet_rtm_getroute, NULL, NULL); | 2602 | rtnl_register(PF_INET, RTM_GETROUTE, inet_rtm_getroute, NULL, NULL); |
2603 | 2603 | ||