diff options
author | Padmanabh Ratnakar <padmanabh.ratnakar@broadcom.com> | 2016-02-03 09:49:22 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-07 13:55:22 -0500 |
commit | 972f37b424e65f9ef1ce143b8658d9ed50db9f42 (patch) | |
tree | 63058b8e5b7384c61a05a1a2aae829f3706cee06 /drivers/net/ethernet/emulex/benet/be.h | |
parent | 1babbad46f4aba1c242e43e27c5b36a62311b2d4 (diff) | |
download | op-kernel-dev-972f37b424e65f9ef1ce143b8658d9ed50db9f42.zip op-kernel-dev-972f37b424e65f9ef1ce143b8658d9ed50db9f42.tar.gz |
be2net: Add retry in case of error recovery failure
Retry error recovery MAX_ERR_RECOVERY_RETRY_COUNT times in case of
failure during error recovery.
Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@broadcom.com>
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index de88c30..515e206 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h @@ -397,6 +397,10 @@ enum vf_state { #define BE_UC_PMAC_COUNT 30 #define BE_VF_UC_PMAC_COUNT 2 +#define MAX_ERR_RECOVERY_RETRY_COUNT 3 +#define ERR_DETECTION_DELAY 1000 +#define ERR_RECOVERY_RETRY_DELAY 30000 + /* Ethtool set_dump flags */ #define LANCER_INITIATE_FW_DUMP 0x1 #define LANCER_DELETE_FW_DUMP 0x2 @@ -534,6 +538,7 @@ struct be_adapter { u16 work_counter; struct delayed_work be_err_detection_work; + u8 recovery_retries; u8 err_flags; u32 flags; u32 cmd_privileges; |