Re: [ovs-dev] [PATCH v5 9/9] datapath: Minimize dp and vport critical sections.

2014-03-29 Thread Jarno Rajahalme
Pushed to master with the function name change (ovs_vport_cmd_alloc() -> ovs_vport_cmd_alloc_info()). Jarno On Mar 28, 2014, at 1:26 PM, Pravin Shelar wrote: > On Tue, Mar 25, 2014 at 2:35 PM, Jarno Rajahalme > wrote: >> Move most memory allocations away from the ovs_mutex critical >> sect

Re: [ovs-dev] [PATCH v5 9/9] datapath: Minimize dp and vport critical sections.

2014-03-28 Thread Pravin Shelar
On Tue, Mar 25, 2014 at 2:35 PM, Jarno Rajahalme wrote: > 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 m

[ovs-dev] [PATCH v5 9/9] datapath: Minimize dp and vport critical sections.

2014-03-25 Thread Jarno Rajahalme
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(