git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e4c468
)
datapath: correct an invalid BUG_ON
author
Hong Zhiguo
<honkiko@gmail.com>
Wed, 27 Mar 2013 15:14:43 +0000
(08:14 -0700)
committer
Jesse Gross
<jesse@nicira.com>
Wed, 27 Mar 2013 15:14:43 +0000
(08:14 -0700)
table->count is uint32_t
Signed-off-by: Hong Zhiguo <honkiko@gmail.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/flow.c
patch
|
blob
|
history
diff --git
a/datapath/flow.c
b/datapath/flow.c
index
afebc7a
..
2aeb704
100644
(file)
--- a/
datapath/flow.c
+++ b/
datapath/flow.c
@@
-825,9
+825,9
@@
void ovs_flow_tbl_insert(struct flow_table *table, struct sw_flow *flow,
void ovs_flow_tbl_remove(struct flow_table *table, struct sw_flow *flow)
{
+ BUG_ON(table->count == 0);
hlist_del_rcu(&flow->hash_node[table->node_ver]);
table->count--;
- BUG_ON(table->count < 0);
}
/* The size of the argument for each %OVS_KEY_ATTR_* Netlink attribute. */