datapath: Allow table to expand to have TBL_MAX_BUCKETS buckets
[sliver-openvswitch.git] / datapath / table.c
index 76086ee..36613bd 100644 (file)
@@ -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;
        }