scsi: lpfc: Remove reftag check in DIF paths
authorJustin Tee <justin.tee@broadcom.com>
Thu, 3 Aug 2023 21:19:32 +0000 (14:19 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Aug 2023 01:34:08 +0000 (21:34 -0400)
commit8eebf0e84f0614cebc7347f7bbccba4056d77d42
treee23d65c0efecd371aa3ebcb4af6b0e3955556465
parentb6d128f89a85771433a004e8656090ccbe1fb969
scsi: lpfc: Remove reftag check in DIF paths

When preparing protection DIF I/O for DMA, the driver obtains reference
tags from scsi_prot_ref_tag().  Previously, there was a wrong assumption
that an all 0xffffffff value meant error and thus the driver failed the
I/O.  This patch removes the evaluation code and accepts whatever the upper
layer returns.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20230803211932.155745-1-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_scsi.c