]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Correct BDE DMA address assignment for GEN_REQ_WQE
authorJames Smart <jsmart2021@gmail.com>
Fri, 6 May 2022 20:55:48 +0000 (13:55 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 May 2022 01:44:04 +0000 (21:44 -0400)
commitc1a6f3ba25cb8b7aa39a4e4b7b9d06f4691726a8
tree156dee894194da71ed6ee17f6a5f13dfcb74582b
parentc54675b91aad671c44ccd3c71c4d264bee851767
scsi: lpfc: Correct BDE DMA address assignment for GEN_REQ_WQE

Garbage FCoE CT frames are transmitted on the wire because of bad DMA ptr
addresses filled in the GEN_REQ_WQE.

The __lpfc_sli_prep_gen_req_s4() routine is using the wrong buffer for the
payload address. Change the DMA buffer assignment from the bmp buffer to
the bpl buffer.

Link: https://lore.kernel.org/r/20220506205548.61644-1-jsmart2021@gmail.com
Fixes: 2d834a7cd0d0 ("scsi: lpfc: SLI path split: Refactor CT paths")
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