lpfc 8.3.25: T10 DIF Fixes
Subsystems (2)
PATCH 1/8 lpfc 8.3.25: T10 DIF Fixes
T10 DIF Fixes
- Fix the case where the SCSI Host supplies the CRC and driver to controller protection is on.
- Only support T10 DIF type 1. LBA always goes in ref tag and app tag is not checked.
- Change the format of the sense data passed up to the SCSI layer to match the Descriptor Format Sense Data found in SPC-4 sections 4.5.2.1 and 4.5.2.2.
- Fix Slip PDE implementation.
- Remove BUG() in else casein lpfc_sc_to_bg_opcodes.
Signed-off-by Alex Iannicelli <[email protected]>
Signed-off-by James Smart <[email protected]>
---
lpfc_attr.c | 4 +- lpfc_scsi.c | 97 ++++++++++++++++++------------------------------------------ 2 files changed, 33 insertions(+), 68 deletions(-)
drivers/scsi/lpfc/lpfc_attr.c +3 -1
@@ -3678,7 +3678,9 @@ LPFC_ATTR_R(enable_bg, 0, 0, 1, "Enable# - Default will result in registering capabilities for all profiles. # */ -unsigned int lpfc_prot_mask =SHOST_DIF_TYPE1_PROTECTION ; +unsigned int lpfc_prot_mask =SHOST_DIF_TYPE1_PROTECTION | +SHOST_DIX_TYPE0_PROTECTION | +SHOST_DIX_TYPE1_PROTECTION ;module_param (lpfc_prot_mask, uint,S_IRUGO );MODULE_PARM_DESC (lpfc_prot_mask,"host protection mask" );
drivers/scsi/lpfc/lpfc_scsi.c +30 -67
206 lines not on this page · raw message