aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fjes/fjes_hw.h
diff options
context:
space:
mode:
authorTaku Izumi <izumi.taku@jp.fujitsu.com>2016-04-15 11:25:46 +0900
committerDavid S. Miller <davem@davemloft.net>2016-04-16 21:51:01 -0400
commitbd5a256991f9a9cc0b7f6385dd1d8cfc90559b12 (patch)
tree2c894fb54b29e7ba3d62831dcbebad9d15b34fa0 /drivers/net/fjes/fjes_hw.h
parentfjes: Enhance changing MTU related work (diff)
downloadlinux-dev-bd5a256991f9a9cc0b7f6385dd1d8cfc90559b12.tar.xz
linux-dev-bd5a256991f9a9cc0b7f6385dd1d8cfc90559b12.zip
fjes: Introduce spinlock for rx_status
This patch introduces spinlock of rx_status for proper excusive control. Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fjes/fjes_hw.h')
-rw-r--r--drivers/net/fjes/fjes_hw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/fjes/fjes_hw.h b/drivers/net/fjes/fjes_hw.h
index f40cf0792a39..1445ac99d6e3 100644
--- a/drivers/net/fjes/fjes_hw.h
+++ b/drivers/net/fjes/fjes_hw.h
@@ -300,6 +300,8 @@ struct fjes_hw {
u8 *base;
struct fjes_hw_info hw_info;
+
+ spinlock_t rx_status_lock; /* spinlock for rx_status */
};
int fjes_hw_init(struct fjes_hw *);