diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2012-11-13 11:52:24 +0400 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2012-11-13 12:15:07 +0400 |
commit | 703fb94ec58e0e8769380c2877a8a34aeb5b6c97 (patch) | |
tree | 57bb3948dfe46f9dcd36b92ec4112408c7d5cc73 /include | |
parent | a66fe1653f4e81c007a68ca975067432a42df05b (diff) | |
download | linux-703fb94ec58e0e8769380c2877a8a34aeb5b6c97.tar.xz |
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 'include')
-rw-r--r-- | include/net/xfrm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 6f0ba01afe73..63445ede48bb 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -1351,7 +1351,7 @@ struct xfrm6_tunnel { }; extern void xfrm_init(void); -extern void xfrm4_init(int rt_hash_size); +extern void xfrm4_init(void); extern int xfrm_state_init(struct net *net); extern void xfrm_state_fini(struct net *net); extern void xfrm4_state_init(void); |