]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Convert dp rcu read operation to locked operations
authorPravin B Shelar <pshelar@nicira.com>
Tue, 11 Nov 2014 23:55:16 +0000 (15:55 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 14 Nov 2014 23:13:26 +0000 (15:13 -0800)
commit0e05ba45b2d89a8ecf23aaceda105a22bd11bbf7
treef84c0baf1777f642408afa9df69bb69a34cb8d5d
parentd269c371d5fc7d6f334f9225292f1f282f602cf2
openvswitch: Convert dp rcu read operation to locked operations

dp read operations depends on ovs_dp_cmd_fill_info(). This API
needs to looup vport to find dp name, but vport lookup can
fail. Therefore to keep vport reference alive we need to
take ovs lock.

Introduced by commit 20c6ce8d0b60 ("openvswitch: Minimize
dp and vport critical sections").

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
net/openvswitch/datapath.c