scsi: lpfc: SLI path split: Refactor VMID paths
authorJames Smart <jsmart2021@gmail.com>
Fri, 25 Feb 2022 02:23:01 +0000 (18:23 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 28 Feb 2022 03:16:38 +0000 (22:16 -0500)
commite6d89efd63e43e1be83347d7083942da04de3190
treefe36ff52b125ab00ac776c567b0f6a6936d79a0b
parenta8ac13c6a4758095d9a5cfc4b61f9fb5c6587a13
scsi: lpfc: SLI path split: Refactor VMID paths

This patch refactors the VMID paths to use SLI-4 as the primary interface:

 - Conversion away from using SLI-3 iocb structures to set/access fields in
   common routines. Use the new generic get/set routines that were added.
   This move changes code from indirect structure references to using local
   variables with the generic routines.

 - Refactor routines when setting non-generic fields, to have both SLI3 and
   SLI4 specific sections. This replaces the set-as-SLI3 then translate to
   SLI4 behavior of the past.

Link: https://lore.kernel.org/r/20220225022308.16486-11-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_ct.c
drivers/scsi/lpfc/lpfc_els.c