datapath: Fix ovs_flow_free() ovs-lock assert.
authorPravin B Shelar <pshelar@nicira.com>
Tue, 28 Jan 2014 02:18:33 +0000 (18:18 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Tue, 28 Jan 2014 02:42:37 +0000 (18:42 -0800)
commitfa10709d1e2413ff1b5ad667595338041bbeb76b
tree02e18e950f6f3d11244939b808cebc274c598a7a
parent4366871536e3fef825f886cf917953d7a3af76ba
datapath: 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>
Acked-by: Andy Zhou <azhou@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/flow_table.c