diff options
author | Jitendra Bhivare <jitendra.bhivare@broadcom.com> | 2016-08-19 15:20:14 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-08-23 22:42:43 -0400 |
commit | 6694095b5a28c54d9fd114997e483cdc47a2e792 (patch) | |
tree | 07a93f2f35cddeaf7485b0c82aa2da2cfae414e8 /drivers/scsi/be2iscsi/be_main.h | |
parent | 10bcd47dff496206de68223aeb1a581bccad03d3 (diff) |
scsi: be2iscsi: Add IOCTL to check UER supported
BE3 and SH cards can recover from transient parity errors treated
earlier as unrecoverable errors.
Add IOCTL to query FW support for this feature.
Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_main.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h index 0d34ac611d2f..0a5de01c3883 100644 --- a/drivers/scsi/be2iscsi/be_main.h +++ b/drivers/scsi/be2iscsi/be_main.h @@ -405,13 +405,17 @@ struct beiscsi_hba { #define BEISCSI_HBA_LINK_UP 1 #define BEISCSI_HBA_BOOT_FOUND 2 #define BEISCSI_HBA_BOOT_WORK 3 -#define BEISCSI_HBA_PCI_ERR 4 -#define BEISCSI_HBA_FW_TIMEOUT 5 -#define BEISCSI_HBA_IN_UE 6 +#define BEISCSI_HBA_UER_SUPP 4 +#define BEISCSI_HBA_PCI_ERR 5 +#define BEISCSI_HBA_FW_TIMEOUT 6 +#define BEISCSI_HBA_IN_UE 7 +#define BEISCSI_HBA_IN_TPE 8 + /* error bits */ #define BEISCSI_HBA_IN_ERR ((1 << BEISCSI_HBA_PCI_ERR) | \ (1 << BEISCSI_HBA_FW_TIMEOUT) | \ - (1 << BEISCSI_HBA_IN_UE)) + (1 << BEISCSI_HBA_IN_UE) | \ + (1 << BEISCSI_HBA_IN_TPE)) u8 optic_state; struct delayed_work eqd_update; @@ -420,6 +424,7 @@ struct beiscsi_hba { struct timer_list hw_check; /* check for UE every 1000ms */ #define BEISCSI_UE_DETECT_INTERVAL 1000 + u32 ue2rp; bool mac_addr_set; u8 mac_address[ETH_ALEN]; |