diff options
author | James Smart <james.smart@emulex.com> | 2012-03-02 04:37:42 +0100 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-03-27 09:26:33 +0200 |
commit | 9a6b09c071a5f66ed3c359d8631e07b34a9e738f (patch) | |
tree | e295ef167f092f2e3d160f54b12c5583ae6c6728 /drivers/scsi/lpfc/lpfc_scsi.h | |
parent | [SCSI] lpfc 8.3.30: Change default DA_ID support from disabled to enabled (diff) | |
download | linux-9a6b09c071a5f66ed3c359d8631e07b34a9e738f.tar.xz linux-9a6b09c071a5f66ed3c359d8631e07b34a9e738f.zip |
[SCSI] lpfc 8.3.30: Enhancements for T10 DIF debugfs error injection
Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.h b/drivers/scsi/lpfc/lpfc_scsi.h index 9075a08cf781..5a5b98e58593 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.h +++ b/drivers/scsi/lpfc/lpfc_scsi.h @@ -150,6 +150,16 @@ struct lpfc_scsi_buf { struct lpfc_iocbq cur_iocbq; wait_queue_head_t *waitq; unsigned long start_time; + +#ifdef CONFIG_SCSI_LPFC_DEBUG_FS + /* Used to restore any changes to protection data for error injection */ + void *prot_data_segment; + uint32_t prot_data; + uint32_t prot_data_type; +#define LPFC_INJERR_REFTAG 1 +#define LPFC_INJERR_APPTAG 2 +#define LPFC_INJERR_GUARD 3 +#endif }; #define LPFC_SCSI_DMA_EXT_SIZE 264 |