projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofp-util: Rename struct flow_mod to struct ofputil_flow_mod.
[openvswitch]
/
datapath
/
table.c
diff --git
a/datapath/table.c
b/datapath/table.c
index 725845de568ebb5c629f1785aac793fed8dd3a18..36613bd901aa84fb1894a14ff2c6e5a8fbf71318 100644
(file)
--- a/
datapath/table.c
+++ b/
datapath/table.c
@@
-333,13
+333,13
@@
struct tbl *tbl_expand(struct tbl *table)
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 = -ENOMEM;
err = -ENOSPC;
goto error;
}
err = -ENOMEM;
- new_table = tbl_create(
TBL_MIN_BUCKETS
);
+ new_table = tbl_create(
n_buckets
);
if (!new_table)
goto error;
if (!new_table)
goto error;