This resolves what appears to be a logic error whereby
the maximum number of buckets is limited to only half of TBL_MAX_BUCKETS.
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Jesse Gross <jesse@nicira.com>
int n_buckets = table->n_buckets * 2;
struct tbl *new_table;
int n_buckets = table->n_buckets * 2;
struct tbl *new_table;
- if (n_buckets >= TBL_MAX_BUCKETS) {
+ if (n_buckets > TBL_MAX_BUCKETS) {
err = -ENOSPC;
goto error;
}
err = -ENOSPC;
goto error;
}