scsi: lpfc: Fix dif and first burst use in write commands
authorJames Smart <jsmart2021@gmail.com>
Fri, 30 Nov 2018 00:09:40 +0000 (16:09 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:37:08 +0000 (15:37 +0100)
commit78f7d2dbdf06f4af54d63c2c5334ad08710617d7
tree811f723f811b7ed9ad63204189303d1eb24df6d6
parent2e0c82241c09a79de8d2e9d63b3219b6719a7012
scsi: lpfc: Fix dif and first burst use in write commands

[ Upstream commit 7c4042a4d0b7532cfbc90478fd3084b2dab5849e ]

When dif and first burst is used in a write command wqe, the driver was not
properly setting fields in the io command request. This resulted in no dif
bytes being sent and invalid xfer_rdy's, resulting in the io being aborted
by the hardware.

Correct the wqe initializaton when both dif and first burst are used.

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/lpfc/lpfc_scsi.c