We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents adfaf66 + 4f18055 commit 2be0070Copy full SHA for 2be0070
net/netfilter/ipset/ip_set_hash_gen.h
@@ -63,7 +63,7 @@ struct hbucket {
63
#define ahash_sizeof_regions(htable_bits) \
64
(ahash_numof_locks(htable_bits) * sizeof(struct ip_set_region))
65
#define ahash_region(n, htable_bits) \
66
- ((n) % ahash_numof_locks(htable_bits))
+ ((n) / jhash_size(HTABLE_REGION_BITS))
67
#define ahash_bucket_start(h, htable_bits) \
68
((htable_bits) < HTABLE_REGION_BITS ? 0 \
69
: (h) * jhash_size(HTABLE_REGION_BITS))
0 commit comments