aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be.h
diff options
context:
space:
mode:
authorAjit Khaparde <ajitk@serverengines.com>2010-07-29 02:18:58 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-31 02:59:06 -0400
commit0fc48c37ff3969dde71a43fa7c8f176d4bd90a3e (patch)
tree5d2d400a09be92fde256ba2501fcd5ea426d0179 /drivers/net/benet/be.h
parent48e9989e033966fd738d062ea9730fe10085fdd1 (diff)
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 {
289 u32 rx_fc; /* Rx flow control */ 289 u32 rx_fc; /* Rx flow control */
290 u32 tx_fc; /* Tx flow control */ 290 u32 tx_fc; /* Tx flow control */
291 bool ue_detected; 291 bool ue_detected;
292 bool stats_ioctl_sent;
292 int link_speed; 293 int link_speed;
293 u8 port_type; 294 u8 port_type;
294 u8 transceiver; 295 u8 transceiver;