mirror of
https://github.com/openvswitch/ovs
synced 2025-10-09 13:49:05 +00:00
datapath: Allow table to expand to have TBL_MAX_BUCKETS buckets
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>
This commit is contained in:
committed by
Jesse Gross
parent
7d110e9602
commit
d1993ffea5
@@ -333,7 +333,7 @@ struct tbl *tbl_expand(struct tbl *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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user