vmxnet3: Add locking for access to command register
authorShreyas Bhatewara <sbhatewara@vmware.com>
Fri, 14 Jan 2011 14:59:57 +0000 (14:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Jan 2011 05:21:14 +0000 (21:21 -0800)
commit83d0feffc5695d7dc24c6b8dac9ab265533beb78
treea1fc2e1e73827fb838657cdf75814c15b3efc746
parent51956cd68b0c3039968485317b77a89dfec95eab
vmxnet3: Add locking for access to command register

Access to cmd register is racey, especially in smp environments. Protect
it using a spinlock.

Signed-off-by: Matthieu Bucchianeri <matthieu@vmware.com>
Signed-off-by: Shreyas N Bhatewara <sbhatewara@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/vmxnet3/vmxnet3_ethtool.c
drivers/net/vmxnet3/vmxnet3_int.h