]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: SLI path split: Refactor SCSI paths
authorJames Smart <jsmart2021@gmail.com>
Fri, 25 Feb 2022 02:23:04 +0000 (18:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:21 +0000 (14:24 +0200)
commit037888f4d7a12846450433ebdf3eb76891c55f3f
treee29732f9845657989e4d9e9d62bd09d6ae5760b6
parent88a5c8e8870004224f813122c59a87060cc5cc16
scsi: lpfc: SLI path split: Refactor SCSI paths

[ Upstream commit a12ba2807f37c921680c9ae2920855dfddf9c157 ]

This patch refactors the SCSI 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-14-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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/lpfc/lpfc.h
drivers/scsi/lpfc/lpfc_scsi.c
drivers/scsi/lpfc/lpfc_sli.c