Home
last modified time | relevance | path

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

/linux-4.4.14/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;
308 spin_lock_bh(&xt_connlimit_locks[hash % CONNLIMIT_LOCK_SLOTS]); in count_them()
312 spin_unlock_bh(&xt_connlimit_locks[hash % CONNLIMIT_LOCK_SLOTS]); in count_them()
448 BUILD_BUG_ON(CONNLIMIT_LOCK_SLOTS > CONNLIMIT_SLOTS); in connlimit_mt_init()
449 BUILD_BUG_ON((CONNLIMIT_SLOTS % CONNLIMIT_LOCK_SLOTS) != 0); in connlimit_mt_init()
451 for (i = 0; i < CONNLIMIT_LOCK_SLOTS; ++i) in connlimit_mt_init()