Home
last modified time | relevance | path

Searched refs:CONNLIMIT_LOCK_SLOTS (Results 1 – 1 of 1) sorted by relevance

/linux-4.1.27/net/netfilter/
Dxt_connlimit.c38 #define CONNLIMIT_LOCK_SLOTS 8U macro
40 #define CONNLIMIT_LOCK_SLOTS 256U macro
58 static spinlock_t xt_connlimit_locks[CONNLIMIT_LOCK_SLOTS] __cacheline_aligned_in_smp;
307 spin_lock_bh(&xt_connlimit_locks[hash % CONNLIMIT_LOCK_SLOTS]); in count_them()
311 spin_unlock_bh(&xt_connlimit_locks[hash % CONNLIMIT_LOCK_SLOTS]); in count_them()
447 BUILD_BUG_ON(CONNLIMIT_LOCK_SLOTS > CONNLIMIT_SLOTS); in connlimit_mt_init()
448 BUILD_BUG_ON((CONNLIMIT_SLOTS % CONNLIMIT_LOCK_SLOTS) != 0); in connlimit_mt_init()
450 for (i = 0; i < CONNLIMIT_LOCK_SLOTS; ++i) in connlimit_mt_init()