Home
last modified time | relevance | path

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

/Linux-v4.19/net/netfilter/
Dnf_conncount.c34 #define CONNCOUNT_SLOTS 256U macro
66 struct rb_root root[CONNCOUNT_SLOTS];
69 unsigned long pending_trees[BITS_TO_LONGS(CONNCOUNT_SLOTS)];
439 hash = jhash2(key, data->keylen, conncount_rnd) % CONNCOUNT_SLOTS; in count_tree()
509 next_tree = (tree + 1) % CONNCOUNT_SLOTS; in tree_gc_worker()
510 next_tree = find_next_bit(data->pending_trees, next_tree, CONNCOUNT_SLOTS); in tree_gc_worker()
512 if (next_tree < CONNCOUNT_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()