aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi
diff options
context:
space:
mode:
authorGravatar Justin Tee <justin.tee@broadcom.com> 2024-04-29 15:15:41 -0700
committerGravatar Martin K. Petersen <martin.petersen@oracle.com> 2024-05-06 21:53:58 -0400
commit18f7761d5c6f290236a0d181feecea592226a9df (patch)
tree127facc877c1004b8544625472d425ff750c076f /drivers/scsi
parentscsi: lpfc: Change default logging level for unsolicited CT MIB commands (diff)
downloadlinux-18f7761d5c6f290236a0d181feecea592226a9df.tar.gz
linux-18f7761d5c6f290236a0d181feecea592226a9df.tar.bz2
linux-18f7761d5c6f290236a0d181feecea592226a9df.zip
scsi: lpfc: Update logging of protection type for T10 DIF I/O
A struct scsi_cmnd already contains T10 DIF protection type information in prot_type. So, instead of manually checking a CDBs' RD/WRPROTECT fields with (byte[1] >> 5) utilize scsi_get_prot_type(). Signed-off-by: Justin Tee <justin.tee@broadcom.com> Link: https://lore.kernel.org/r/20240429221547.6842-3-justintee8345@gmail.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/lpfc/lpfc_scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index 4a6e5223a224..89a622e3053e 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -5327,7 +5327,7 @@ lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd)
cmnd->cmnd[0],
scsi_prot_ref_tag(cmnd),
scsi_logical_block_count(cmnd),
- (cmnd->cmnd[1]>>5));
+ scsi_get_prot_type(cmnd));
}
err = lpfc_bg_scsi_prep_dma_buf(phba, lpfc_cmd);
} else {