openvswitch: Refactor get_dp() function into multiple access APIs.
authorAndy Zhou <azhou@nicira.com>
Mon, 8 Sep 2014 20:14:22 +0000 (13:14 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 6 Nov 2014 07:52:34 +0000 (23:52 -0800)
commit5f9477db6d8f93f51dca3946a42fb9245814a0f8
tree6c3af8e0e35ca25c331659a7f6c5c057158ba1d4
parent14b7ee772dc03f53fb67f2c82284a623ca5db222
openvswitch: Refactor get_dp() function into multiple access APIs.

Avoid recursive read_rcu_lock() by using the lighter weight
get_dp_rcu() API. Add proper locking assertions to get_dp().

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