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)
commitcc3a5ae6f23336ddc1d136a66c0a6a60276e99a3
tree6c3af8e0e35ca25c331659a7f6c5c057158ba1d4
parentca7105f278b3f7bd2c6f2b336c928f679054de4d
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