Home
last modified time | relevance | path

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

/Linux-v4.19/net/netfilter/
Dnf_conncount.c37 #define CONNCOUNT_LOCK_SLOTS 8U macro
39 #define CONNCOUNT_LOCK_SLOTS 256U macro
62 static spinlock_t nf_conncount_locks[CONNCOUNT_LOCK_SLOTS] __cacheline_aligned_in_smp;
345 spin_lock_bh(&nf_conncount_locks[hash % CONNCOUNT_LOCK_SLOTS]); in insert_tree()
421 spin_unlock_bh(&nf_conncount_locks[hash % CONNCOUNT_LOCK_SLOTS]); in insert_tree()
490 tree = data->gc_tree % CONNCOUNT_LOCK_SLOTS; in tree_gc_worker()
612 BUILD_BUG_ON(CONNCOUNT_LOCK_SLOTS > CONNCOUNT_SLOTS); in nf_conncount_modinit()
613 BUILD_BUG_ON((CONNCOUNT_SLOTS % CONNCOUNT_LOCK_SLOTS) != 0); in nf_conncount_modinit()
615 for (i = 0; i < CONNCOUNT_LOCK_SLOTS; ++i) in nf_conncount_modinit()