summaryrefslogtreecommitdiff
path: root/drivers/net/benet/be.h
diff options
context:
space:
mode:
authorAjit Khaparde <ajitk@serverengines.com>2010-07-29 10:18:58 +0400
committerDavid S. Miller <davem@davemloft.net>2010-07-31 10:59:06 +0400
commit0fc48c37ff3969dde71a43fa7c8f176d4bd90a3e (patch)
tree5d2d400a09be92fde256ba2501fcd5ea426d0179 /drivers/net/benet/be.h
parent48e9989e033966fd738d062ea9730fe10085fdd1 (diff)
downloadlinux-0fc48c37ff3969dde71a43fa7c8f176d4bd90a3e.tar.xz
be2net: fix to avoid sending get_stats request if one is already being processed.
GET_STATS request uses the same memory region as the response. If a new request for get stats is fired before the response for the previous get_stats request is received, the response will corrupt the new request, causing the f/w to misbehave. Signed-off-by: Somnath K <somnathk@serverengines.com> Signed-off-by: Ajit Khaparde <ajitk@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be.h')
-rw-r--r--drivers/net/benet/be.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h
index 5e6f581c49d4..99197bd54da5 100644
--- a/drivers/net/benet/be.h
+++ b/drivers/net/benet/be.h
@@ -289,6 +289,7 @@ struct be_adapter {
u32 rx_fc; /* Rx flow control */
u32 tx_fc; /* Tx flow control */
bool ue_detected;
+ bool stats_ioctl_sent;
int link_speed;
u8 port_type;
u8 transceiver;