]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Minimize dp and vport critical sections.
authorJarno Rajahalme <jrajahalme@nicira.com>
Mon, 5 May 2014 21:13:32 +0000 (14:13 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 22 May 2014 23:27:35 +0000 (16:27 -0700)
commitd28580f8847c9e575e856049c11e443a960d3e7c
tree23ea64a6a9987a2e1b45e7fbe5689c7767cb3f5b
parent8f74f9be28f08cf8a7120668df397b6897e5e8e8
openvswitch: Minimize dp and vport critical sections.

Move most memory allocations away from the ovs_mutex critical
sections.  vport allocations still happen while the lock is taken, as
changing that would require major refactoring. Also, vports are
created very rarely so it should not matter.

Change ovs_dp_cmd_get() now only takes the rcu_read_lock(), rather
than ovs_lock(), as nothing need to be changed.  This was done by
ovs_vport_cmd_get() already.

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