]> git.baikalelectronics.ru Git - kernel.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)
commita54c173539cc77acf599e310856b5f766c094ee2
tree272d7ee43bc9dd29ee8c958d32cadc76d4231a3b
parentb090372caedfeaee88067e8c702b049914e55a72
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