]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
scsi: lpfc: Fix incorrect dbde assignment when building target abts wqe
authorJames Smart <jsmart2021@gmail.com>
Mon, 1 Mar 2021 17:18:00 +0000 (09:18 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Mar 2021 22:37:03 +0000 (17:37 -0500)
The wqe_dbde field indicates whether a Data BDE is present in Words 0:2 and
should therefore should be clear in the abts request wqe. By setting the
bit we can be misleading fw into error cases.

Clear the wqe_dbde field.

Link: https://lore.kernel.org/r/20210301171821.3427-2-jsmart2021@gmail.com
Co-developed-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvmet.c

index bb2a4a0d12959f14f721aa3d4aaa0074394c8bb2..a3fd959f7431cc46a5de30f65cb70517fc82c9c8 100644 (file)
@@ -3304,7 +3304,6 @@ lpfc_nvmet_unsol_issue_abort(struct lpfc_hba *phba,
        bf_set(wqe_rcvoxid, &wqe_abts->xmit_sequence.wqe_com, xri);
 
        /* Word 10 */
-       bf_set(wqe_dbde, &wqe_abts->xmit_sequence.wqe_com, 1);
        bf_set(wqe_iod, &wqe_abts->xmit_sequence.wqe_com, LPFC_WQE_IOD_WRITE);
        bf_set(wqe_lenloc, &wqe_abts->xmit_sequence.wqe_com,
               LPFC_WQE_LENLOC_WORD12);