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 <[email protected]>

---

On a 64-bit system I have verified that this change
allows the number of entries in the flow table
to stop increasing at 262,144 (TBL_MAX_BUCKETS) instead
of 131,072 (TBL_MAX_BUCKETS/2).
---
 datapath/table.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/datapath/table.c b/datapath/table.c
index 76086ee..36613bd 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;
        }
-- 
1.7.5.4

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to