datapath: Minimize ovs_flow_cmd_del critical section.
authorJarno Rajahalme <jrajahalme@nicira.com>
Wed, 2 Apr 2014 18:14:58 +0000 (11:14 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Wed, 2 Apr 2014 18:14:58 +0000 (11:14 -0700)
commitcde7f3ba24da6d9405afcdadc6b7f15bd3de7ad0
treec9761d618209dbdc10cc0be4193447fd71f4c448
parentf71db6b17852d7e0d2ade9f60b7aec63cd584a82
datapath: Minimize ovs_flow_cmd_del critical section.

ovs_flow_cmd_del() now allocates reply (if needed) after the flow has
already been removed from the flow table.  If the reply allocation
fails, a netlink error is signaled with netlink_set_err(), as is
already done in ovs_flow_cmd_new_or_set() in the similar situation.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
datapath/datapath.c