summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--datapath/flow_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/flow_table.c b/datapath/flow_table.c
index 409f9dde4..c76f2a149 100644
--- a/datapath/flow_table.c
+++ b/datapath/flow_table.c
@@ -988,7 +988,7 @@ int ovs_flow_init(void)
BUILD_BUG_ON(sizeof(struct sw_flow_key) % sizeof(long));
flow_cache = kmem_cache_create("sw_flow", sizeof(struct sw_flow)
- + (num_possible_nodes()
+ + (nr_node_ids
* sizeof(struct flow_stats *)),
0, 0, NULL);
if (flow_cache == NULL)