tunnel: hh_cache access cleanup
authorPravin B Shelar <pshelar@nicira.com>
Fri, 21 Oct 2011 21:16:04 +0000 (14:16 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 21 Oct 2011 21:16:04 +0000 (14:16 -0700)
commitc2310ade7b550da9033963103ff1e318f34e1556
tree26ea4f1c6a02998739c5e259056f831117b93626
parent642a5c059f079e05892b00e004b039fab854c0f0
tunnel: hh_cache access cleanup

Following patch cleanup hh_cache access by avoiding hh pointer fetching
most of time. Now hh is read and checked at beginning of function. All
hh->hh_len access are done inside hh_lock.
This is required cleanup for next patch which adds support for kernel
3.1.

Suggested-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: Pravin Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/tunnel.c
datapath/tunnel.h