Skip to content

Commit

Permalink
openvswitch: Minimize dp and vport critical sections.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jarno Rajahalme authored and Pravin B Shelar committed May 22, 2014
1 parent 56c1986 commit 6093ae9
Showing 1 changed file with 110 additions and 108 deletions.
Loading

0 comments on commit 6093ae9

Please sign in to comment.