]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
openvswitch: Minimize ovs_flow_cmd_del critical section.
authorJarno Rajahalme <jrajahalme@nicira.com>
Mon, 5 May 2014 21:40:13 +0000 (14:40 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 22 May 2014 23:27:36 +0000 (16:27 -0700)
commitaed067783e505bf66dcafa8647d08619eb5b1c55
tree272d7ee43bc9dd29ee8c958d32cadc76d4231a3b
parent0e9796b4af9ef490e203158cb738a5a4986eb75c
openvswitch: 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>
net/openvswitch/datapath.c