diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2012-11-13 08:52:24 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2012-11-13 09:15:07 +0100 |
commit | 703fb94ec58e0e8769380c2877a8a34aeb5b6c97 (patch) | |
tree | 57bb3948dfe46f9dcd36b92ec4112408c7d5cc73 /include | |
parent | net: usb: cdc_eem: Fix rx skb allocation for 802.1Q VLANs (diff) | |
download | linux-703fb94ec58e0e8769380c2877a8a34aeb5b6c97.tar.xz linux-703fb94ec58e0e8769380c2877a8a34aeb5b6c97.zip |
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); |