xfrm: Fix the gc threshold value for ipv4
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 13 Nov 2012 07:52:24 +0000 (08:52 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 13 Nov 2012 08:15:07 +0000 (09:15 +0100)
commit703fb94ec58e0e8769380c2877a8a34aeb5b6c97
tree57bb3948dfe46f9dcd36b92ec4112408c7d5cc73
parenta66fe1653f4e81c007a68ca975067432a42df05b
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>
include/net/xfrm.h
net/ipv4/route.c
net/ipv4/xfrm4_policy.c