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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 8 Dec 2018 03:35:33 +0000 (22:35 -0500)
commit7c4042a4d0b7532cfbc90478fd3084b2dab5849e
tree2dcb5c8e5e175f6ea5f96c1e5ce53092b3ef4148
parent1165a5c2206cf8e4811caab145d16a8d87c69111
scsi: lpfc: Fix dif and first burst use in write commands

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>
drivers/scsi/lpfc/lpfc_scsi.c