]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: SLI path split: Refactor BSG paths
authorJames Smart <jsmart2021@gmail.com>
Fri, 25 Feb 2022 02:23:06 +0000 (18:23 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 15 Mar 2022 17:51:50 +0000 (13:51 -0400)
commit6788fdceb8ce53405b6daa6f06f60bb16aaa9fc2
tree3dfcb843f2ab1a500c947f95a2f531e065ef0738
parent94fb1a2fd0f2773e8a7f74188261ee4bcb9f80d2
scsi: lpfc: SLI path split: Refactor BSG paths

This patch refactors the BSG 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-16-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_bsg.c