be2net: stop issuing FW cmds if any cmd times out
authorSathya Perla <sathya.perla@emulex.com>
Thu, 10 Nov 2011 19:18:00 +0000 (19:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Nov 2011 22:59:36 +0000 (17:59 -0500)
commit6589ade019dcab245d3bb847370f855b56cdf6ad
treefa23308e00b3cbc50faecc45b98b6133743bf72e
parent434b3648e9a58600cea5f3a1a0a7a89048e4df61
be2net: stop issuing FW cmds if any cmd times out

A FW cmd timeout (with a sufficiently large timeout value in the
order of tens of seconds) indicates an unresponsive FW. In this state
issuing further cmds and waiting for a completion will only stall the process.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_main.c