aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSven Wegener <sven.wegener@stealer.net>2008-09-08 07:38:11 -0400
committerSimon Horman <horms@verge.net.au>2008-09-08 19:50:55 -0400
commit2206a3f5b75be5dadf11541961bd7c924857eb5d (patch)
tree8a77697bbd389f723cf7a5acce7303651e701b8c /net
parent9d7f2a2b1aa9e55537a053c68bdbd119fc479dd3 (diff)
ipvs: Restrict connection table size via Kconfig
Instead of checking the value in include/net/ip_vs.h, we can just restrict the range in our Kconfig file. This will prevent values outside of the range early. Signed-off-by: Sven Wegener <sven.wegener@stealer.net> Reviewed-by: Julius Volz <juliusv@google.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/ipvs/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/ipvs/Kconfig b/net/ipv4/ipvs/Kconfig
index 794cecb249af..de6004de80bc 100644
--- a/net/ipv4/ipvs/Kconfig
+++ b/net/ipv4/ipvs/Kconfig
@@ -41,7 +41,8 @@ config IP_VS_DEBUG
41 41
42config IP_VS_TAB_BITS 42config IP_VS_TAB_BITS
43 int "IPVS connection table size (the Nth power of 2)" 43 int "IPVS connection table size (the Nth power of 2)"
44 default "12" 44 range 8 20
45 default 12
45 ---help--- 46 ---help---
46 The IPVS connection hash table uses the chaining scheme to handle 47 The IPVS connection hash table uses the chaining scheme to handle
47 hash collisions. Using a big IPVS connection hash table will greatly 48 hash collisions. Using a big IPVS connection hash table will greatly