scsi: lpfc: Add support for 32 byte CDBs
authorJustin Tee <justin.tee@broadcom.com>
Mon, 29 Apr 2024 22:15:45 +0000 (15:15 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 7 May 2024 01:53:58 +0000 (21:53 -0400)
commitaf20bb73ac2591631d504f3f859f073bcdb7e11e
tree27476189c4cc54aad0d4ae0c56b197469b8bb29d
parente780c9423b1095ae9d96ce8fdbe2a92592d88073
scsi: lpfc: Add support for 32 byte CDBs

The driver's I/O path is updated to support 32 byte CDBs.

Changes to accommodate 32 byte CDBs include:

 - Updating various size fields to allow for the larger 32 byte CDB.

 - Starting the FCP command payload at an earlier offset in WQE submission
   to fit the 32 byte CDB.

 - Redefining relevant structs to __le32/__be32 data types for proper cpu
   endianness macro usage.

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