projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b01614
)
datapath: Fix tracking of number of flows in hash table.
author
Ben Pfaff
<blp@nicira.com>
Sat, 10 Jan 2009 00:45:54 +0000
(16:45 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Sat, 10 Jan 2009 00:45:54 +0000
(16:45 -0800)
Fixes bug #684.
Thanks to Reid for noticing the problem.
datapath/table-hash.c
patch
|
blob
|
history
diff --git
a/datapath/table-hash.c
b/datapath/table-hash.c
index a501c3caa26ede48dd6f333aae2e9036e1fad2f3..9e27b0c4910425a8a473e98bbe65124f4edf83d8 100644
(file)
--- 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;