datapath: Refactor get_dp() function into multiple access APIs.
authorAndy Zhou <azhou@nicira.com>
Tue, 15 Jul 2014 21:38:29 +0000 (14:38 -0700)
committerAndy Zhou <azhou@nicira.com>
Tue, 22 Jul 2014 22:49:37 +0000 (15:49 -0700)
commit01ac0970c80ab08480b9ec169356f55d0f3c0c4a
tree27499eead0f945800e29c32c7d9e65c034dc965b
parent368a198a536809139f13fccc8fbbf75837c5653d
datapath: 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>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/datapath.c