Home
last modified time | relevance | path

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

/Linux-v6.6/net/netfilter/
Dnf_conncount.c35 #define CONNCOUNT_SLOTS 256U macro
56 static spinlock_t nf_conncount_locks[CONNCOUNT_SLOTS] __cacheline_aligned_in_smp;
60 struct rb_root root[CONNCOUNT_SLOTS];
63 unsigned long pending_trees[BITS_TO_LONGS(CONNCOUNT_SLOTS)];
408 hash = jhash2(key, data->keylen, conncount_rnd) % CONNCOUNT_SLOTS; in count_tree()
463 tree = data->gc_tree % CONNCOUNT_SLOTS; in tree_gc_worker()
502 next_tree = (tree + 1) % CONNCOUNT_SLOTS; in tree_gc_worker()
503 next_tree = find_next_bit(data->pending_trees, CONNCOUNT_SLOTS, next_tree); in tree_gc_worker()
505 if (next_tree < CONNCOUNT_SLOTS) { in tree_gc_worker()
605 for (i = 0; i < CONNCOUNT_SLOTS; ++i) in nf_conncount_modinit()