diff options
author | Michael Chan <mchan@broadcom.com> | 2012-01-04 12:12:28 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-05 14:01:21 -0500 |
commit | 23021c21055f88a428b6deb6f803fa0d659e023f (patch) | |
tree | b4f68704f88dc918d411662dd18c3e6c5b51d313 /net | |
parent | a9e0a4f2ca5e97ae2cff0bda72b9645e047c1a3d (diff) | |
download | linux-23021c21055f88a428b6deb6f803fa0d659e023f.tar.gz linux-23021c21055f88a428b6deb6f803fa0d659e023f.tar.bz2 linux-23021c21055f88a428b6deb6f803fa0d659e023f.zip |
cnic: Improve error recovery on bnx2x devices
When a bnx2x device encounters parity errors, it will not respond to all
SPQ messages. As a result, the shutdown sequence before reset can take
a long time as the ulp drivers (bnx2i/bnx2fc) have to wait for timeout
of all such messages.
To improve this scenario, when bnx2x returns error on the SPQ, we'll send
an immediate response to the ulp drivers to avoid such lengthy timeouts.
Adjust the return code of relevant functions to return error only if
the message cannot be sent on the SPQ so that we'll generate an error
completion to the ulp drivers.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions