Fix uninitialized struct member in userspace table-linear.
authorBen Pfaff <blp@nicira.com>
Wed, 6 Aug 2008 18:40:14 +0000 (11:40 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 7 Aug 2008 20:29:10 +0000 (13:29 -0700)
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);