be2net: fix to avoid sending get_stats request if one is already being processed.
authorAjit Khaparde <ajitk@serverengines.com>
Thu, 29 Jul 2010 06:18:58 +0000 (06:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Jul 2010 06:59:06 +0000 (23:59 -0700)
commit0fc48c37ff3969dde71a43fa7c8f176d4bd90a3e
tree5d2d400a09be92fde256ba2501fcd5ea426d0179
parent48e9989e033966fd738d062ea9730fe10085fdd1
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>
drivers/net/benet/be.h
drivers/net/benet/be_cmds.c
drivers/net/benet/be_main.c