diff options
author | Simon Horman <horms@verge.net.au> | 2011-08-03 11:19:46 +0900 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2011-08-02 21:44:13 -0700 |
commit | d1993ffea5d91f28f39838e8bcb1c67bc6bec790 (patch) | |
tree | ef2e70109a83e25423af26b6dd76336a5f8cb0bd /datapath/table.c | |
parent | 7d110e960278c0b1f5c39e398a3aab9d02e84c00 (diff) |
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>
Diffstat (limited to 'datapath/table.c')
-rw-r--r-- | datapath/table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/table.c b/datapath/table.c index 76086ee4..36613bd9 100644 --- a/datapath/table.c +++ b/datapath/table.c @@ -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; } |