Skip to content

Commit 3512ac0

Browse files
jsmart-ghmartinkpetersen
authored andcommitted
scsi: lpfc: SLI path split: Refactor SCSI paths
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>
1 parent 61910d6 commit 3512ac0

3 files changed

Lines changed: 174 additions & 210 deletions

File tree

drivers/scsi/lpfc/lpfc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,10 @@ struct lpfc_hba {
916916
(struct lpfc_vport *vport,
917917
struct lpfc_io_buf *lpfc_cmd,
918918
uint8_t tmo);
919+
int (*lpfc_scsi_prep_task_mgmt_cmd)
920+
(struct lpfc_vport *vport,
921+
struct lpfc_io_buf *lpfc_cmd,
922+
u64 lun, u8 task_mgmt_cmd);
919923

920924
/* IOCB interface function jump table entries */
921925
int (*__lpfc_sli_issue_iocb)

0 commit comments

Comments
 (0)