projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6114ad1
)
Clean up the code in the sample hardware table code.
author
Justin Pettit
<jpettit@nicira.com>
Sat, 13 Sep 2008 01:50:37 +0000
(18:50 -0700)
committer
Justin Pettit
<jpettit@nicira.com>
Sat, 13 Sep 2008 01:50:37 +0000
(18:50 -0700)
datapath/hwtable_dummy/hwtable_dummy.c
patch
|
blob
|
history
diff --git
a/datapath/hwtable_dummy/hwtable_dummy.c
b/datapath/hwtable_dummy/hwtable_dummy.c
index 20f72a29dee9789e893691ac2a8284949d74722f..e3e0eb411857914b7ae3c0c60363057f378acb9a 100644
(file)
--- a/
datapath/hwtable_dummy/hwtable_dummy.c
+++ b/
datapath/hwtable_dummy/hwtable_dummy.c
@@
-105,6
+105,7
@@
static int do_delete(struct sw_table *swt, struct sw_flow *flow)
*/
list_del_rcu(&flow->node);
list_del_rcu(&flow->iter_node);
*/
list_del_rcu(&flow->node);
list_del_rcu(&flow->iter_node);
+ flow_deferred_free(flow);
return 1;
}
return 1;
}
@@
-190,12
+191,12
@@
static int table_dummy_iterate(struct sw_table *swt,
int (*callback)(struct sw_flow *, void *),
void *private)
{
int (*callback)(struct sw_flow *, void *),
void *private)
{
- struct sw_table_dummy *t
l
= (struct sw_table_dummy *) swt;
+ struct sw_table_dummy *t
d
= (struct sw_table_dummy *) swt;
struct sw_flow *flow;
unsigned long start;
start = ~position->private[0];
struct sw_flow *flow;
unsigned long start;
start = ~position->private[0];
- list_for_each_entry (flow, &t
l
->iter_flows, iter_node) {
+ list_for_each_entry (flow, &t
d
->iter_flows, iter_node) {
if (flow->serial <= start && flow_matches_2wild(key,
&flow->key)) {
int error = callback(flow, private);
if (flow->serial <= start && flow_matches_2wild(key,
&flow->key)) {
int error = callback(flow, private);