struct hbucket bucket[0]; /* hashtable buckets */
};
-#define hbucket(h, i) &((t)->bucket[i])
+#define hbucket(h, i) &((h)->bucket[i])
/* Book-keeping of the prefixes added to the set */
struct ip_set_hash_nets {
retry:
ret = 0;
htable_bits++;
+ pr_debug("attempt to resize set %s from %u to %u, t %p\n",
+ set->name, orig->htable_bits, htable_bits, orig);
if (!htable_bits)
/* In case we have plenty of memory :-) */
return -IPSET_ERR_HASH_FULL;
/* Give time to other readers of the set */
synchronize_rcu_bh();
+ pr_debug("set %s resized from %u (%p) to %u (%p)", set->name,
+ orig->htable_bits, orig, t->htable_bits, t);
ahash_destroy(orig);
return 0;
for (; cb->args[2] < jhash_size(t->htable_bits); cb->args[2]++) {
incomplete = skb_tail_pointer(skb);
n = hbucket(t, cb->args[2]);
- pr_debug("cb->args[2]: %lu, t %p n %p\n", cb->args[2], t, n);
+ pr_debug("cb->args[2]: %lu, t %p n %p", cb->args[2], t, n);
for (i = 0; i < n->pos; i++) {
data = ahash_data(n, i);
pr_debug("list hash %lu hbucket %p i %u, data %p",