From: Ben Pfaff Date: Sat, 10 Jan 2009 00:45:54 +0000 (-0800) Subject: datapath: Fix tracking of number of flows in hash table. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43e2b955b2988a43da0d3181e167199f229ae011;p=openvswitch datapath: Fix tracking of number of flows in hash table. Fixes bug #684. Thanks to Reid for noticing the problem. --- diff --git a/datapath/table-hash.c b/datapath/table-hash.c index a501c3ca..9e27b0c4 100644 --- a/datapath/table-hash.c +++ b/datapath/table-hash.c @@ -135,7 +135,7 @@ static int table_hash_delete(struct datapath *dp, struct sw_table *swt, struct sw_flow *flow = *bucket; if (flow && flow_matches_desc(&flow->key, key, strict) && flow_has_out_port(flow, out_port)) - count = do_delete(dp, bucket, flow, NXFER_DELETE); + count += do_delete(dp, bucket, flow, NXFER_DELETE); } } th->n_flows -= count;