]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Fix ovs_flow_free() ovs-lock assert.
authorPravin B Shelar <pshelar@nicira.com>
Fri, 31 Jan 2014 17:43:23 +0000 (09:43 -0800)
committerJesse Gross <jesse@nicira.com>
Wed, 5 Feb 2014 06:21:45 +0000 (22:21 -0800)
commita0f01ad9a60881b2fd774022a1ee52a1d825b259
tree66cff145611dcd24a267ace5e6e48b86b4747dcf
parent295bac70bb29940d9128a8cd7f243e2543d8a56b
openvswitch: Fix ovs_flow_free() ovs-lock assert.

ovs_flow_free() is not called under ovs-lock during packet
execute path (ovs_packet_cmd_execute()). Since packet execute
does not touch flow->mask, there is no need to take that
lock either. So move assert in case where flow->mask is checked.

Found by code inspection.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/flow_table.c