Fix uninitialized struct member in userspace table-linear.
[openvswitch] / switch / table-linear.c
index 43e56e9ae58c92a2ca523bc6abda78cd388b7574..fa87763bf7a922fcf938842ebb09082f781cb83c 100644 (file)
@@ -92,6 +92,7 @@ static int table_linear_insert(struct sw_table *swt, struct sw_flow *flow)
     tl->n_flows++;
 
     /* Insert the entry immediately in front of where we're pointing. */
+    flow->serial = tl->next_serial++;
     list_insert(&f->node, &flow->node);
     list_push_front(&tl->iter_flows, &flow->iter_node);