diff options
author | Michael Chan <mchan@broadcom.com> | 2011-08-26 09:45:40 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-28 21:08:27 (GMT) |
commit | dcc7e3a6a2a2464cf96dee329f7c58fe8c230d97 (patch) | |
tree | 499e2bac1150905c0e0da9b7711cc9d373137c6b /drivers/net/ethernet/broadcom/cnic_defs.h | |
parent | dc219a2e4812eecdc5438d2a0e2434b03d3efbf2 (diff) | |
download | linux-dcc7e3a6a2a2464cf96dee329f7c58fe8c230d97.tar.xz |
cnic: Add timeout for ramrod replies.
If the bnx2x device has encountered parity errors, the chip will not DMA
any replies. Using wait_event_timeout() will allow us to make forward
progress and let bnx2x reset the chip.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/cnic_defs.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/cnic_defs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/cnic_defs.h b/drivers/net/ethernet/broadcom/cnic_defs.h index e47d210..239de89 100644 --- a/drivers/net/ethernet/broadcom/cnic_defs.h +++ b/drivers/net/ethernet/broadcom/cnic_defs.h @@ -67,6 +67,7 @@ #define FCOE_KWQE_OPCODE_DESTROY (10) #define FCOE_KWQE_OPCODE_STAT (11) +#define FCOE_KCQE_COMPLETION_STATUS_ERROR (0x1) #define FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE (0x3) /* KCQ (kernel completion queue) response op codes */ |