]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: lpfc: Set PU field when providing D_ID in XMIT_ELS_RSP64_CX iocb
authorJames Smart <jsmart2021@gmail.com>
Fri, 1 Jul 2022 21:14:16 +0000 (14:14 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jul 2022 21:21:43 +0000 (17:21 -0400)
When providing a D_ID in XMIT_ELS_RSP64_CX iocb the PU field should
be set to 3 to describe the parameter being passed to firmware.

Link: https://lore.kernel.org/r/20220701211425.2708-4-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_sli.c

index 80ac3a051c19234ce88369b057724b159e97afe5..98fef6353b60d674a5414261c1cd04ee9471e361 100644 (file)
@@ -10549,6 +10549,7 @@ __lpfc_sli_prep_els_req_rsp_s3(struct lpfc_iocbq *cmdiocbq,
                cmd->un.elsreq64.bdl.bdeSize = sizeof(struct ulp_bde64);
                cmd->un.genreq64.xmit_els_remoteID = did; /* DID */
                cmd->ulpCommand = CMD_XMIT_ELS_RSP64_CX;
+               cmd->ulpPU = PARM_NPIV_DID;
        }
        cmd->ulpBdeCount = 1;
        cmd->ulpLe = 1;