]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: change the data type of error status to atomic_long_t
authorLi RongQing <roy.qing.li@gmail.com>
Sat, 6 Sep 2014 11:06:11 +0000 (19:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Sep 2014 18:48:07 +0000 (11:48 -0700)
commit5136a19435edb30d7376df7f45da1049fefbb68a
treedd65f6d8b16bb8c64e4c1c47cf0f3cb36d5e5584
parentaa19dc35733254a8d11b12839be5f4d05a6e1966
openvswitch: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport.c
net/openvswitch/vport.h