summaryrefslogtreecommitdiff
path: root/include/net/ip_vs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/ip_vs.h')
-rw-r--r--include/net/ip_vs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 8dc3296b7bea..eb425393f15a 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -603,6 +603,14 @@ extern void ip_vs_init_hash_table(struct list_head *table, int rows);
#define IP_VS_CONN_TAB_SIZE (1 << IP_VS_CONN_TAB_BITS)
#define IP_VS_CONN_TAB_MASK (IP_VS_CONN_TAB_SIZE - 1)
+#ifndef CONFIG_IP_VS_LOCK_BITS
+#define CONFIG_IP_VS_LOCK_BITS 4
+#endif
+
+#define IP_VS_CONN_LOCK_BITS CONFIG_IP_VS_LOCK_BITS
+#define IP_VS_CONN_LOCK_SIZE (1 << IP_VS_CONN_LOCK_BITS)
+#define IP_VS_CONN_LOCK_MASK (IP_VS_CONN_LOCK_SIZE - 1)
+
enum {
IP_VS_DIR_INPUT = 0,
IP_VS_DIR_OUTPUT,