datapath: change the data type of error status to atomic_long_t
authorLi RongQing <roy.qing.li@gmail.com>
Sat, 20 Sep 2014 12:10:03 +0000 (05:10 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Sun, 21 Sep 2014 02:36:33 +0000 (19:36 -0700)
commitf3e54aa79279898834f1ac3c5fc45cd1286a18d3
tree13bef5eb250a441ad58c2df5f0c0a0b2367b1997
parentc981665a3d6cd0a2e60cf08f6a34691ba9e8f314
datapath: change the data type of error status to atomic_long_t

Change the date type of error status from u64 to atomic_long_t, and use atomic
operation, then remove the lock which is used to protect the error status.

The operation of atomic maybe faster than spin lock.

Cc: Pravin Shelar <pshelar@nicira.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/vport.c
datapath/vport.h