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>
This commit is contained in:

committed by
David S. Miller

parent
dc219a2e48
commit
dcc7e3a6a2
@@ -474,5 +474,7 @@ struct bnx2x_bd_chain_next {
|
||||
MAX_STAT_COUNTER_ID_E1))
|
||||
#endif
|
||||
|
||||
#define CNIC_RAMROD_TMO (HZ / 4)
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user