Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111591
b: refs/heads/master
c: 2206a3f
h: refs/heads/master
i:
  111589: 723ba6f
  111587: 4af9302
  111583: 52b50f0
v: v3
  • Loading branch information
Sven Wegener authored and Simon Horman committed Sep 8, 2008
1 parent fb81504 commit 2e5b4dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9d7f2a2b1aa9e55537a053c68bdbd119fc479dd3
refs/heads/master: 2206a3f5b75be5dadf11541961bd7c924857eb5d
10 changes: 1 addition & 9 deletions trunk/include/net/ip_vs.h
Original file line number Diff line number Diff line change
Expand Up @@ -621,16 +621,8 @@ extern void ip_vs_init_hash_table(struct list_head *table, int rows);
#ifndef CONFIG_IP_VS_TAB_BITS
#define CONFIG_IP_VS_TAB_BITS 12
#endif
/* make sure that IP_VS_CONN_TAB_BITS is located in [8, 20] */
#if CONFIG_IP_VS_TAB_BITS < 8
#define IP_VS_CONN_TAB_BITS 8
#endif
#if CONFIG_IP_VS_TAB_BITS > 20
#define IP_VS_CONN_TAB_BITS 20
#endif
#if 8 <= CONFIG_IP_VS_TAB_BITS && CONFIG_IP_VS_TAB_BITS <= 20

#define IP_VS_CONN_TAB_BITS CONFIG_IP_VS_TAB_BITS
#endif
#define IP_VS_CONN_TAB_SIZE (1 << IP_VS_CONN_TAB_BITS)
#define IP_VS_CONN_TAB_MASK (IP_VS_CONN_TAB_SIZE - 1)

Expand Down
3 changes: 2 additions & 1 deletion trunk/net/ipv4/ipvs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ config IP_VS_DEBUG

config IP_VS_TAB_BITS
int "IPVS connection table size (the Nth power of 2)"
default "12"
range 8 20
default 12
---help---
The IPVS connection hash table uses the chaining scheme to handle
hash collisions. Using a big IPVS connection hash table will greatly
Expand Down

0 comments on commit 2e5b4dd

Please sign in to comment.