From: Vaios Papadimitriou Date: Tue, 28 Aug 2012 22:32:19 +0000 (-0700) Subject: scsi/lpfc: Fix SLI4 BlockGuard behavior when protection data is generated by HBA... X-Git-Tag: v2.6.39-400.9.0~314^2~54 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b424561597a48319f0ecf588d11370f7e0ce7194;p=users%2Fjedix%2Flinux-maple.git scsi/lpfc: Fix SLI4 BlockGuard behavior when protection data is generated by HBA (CR 121980) commit id: acd6859b084d1e1b3ec8bc9befe6532223260d33 Signed-off-by: Jerry Snitselaar --- diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index fd1fcda4a392..d2a61e947c0e 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c @@ -1927,6 +1927,7 @@ lpfc_bg_setup_sgl(struct lpfc_hba *phba, struct scsi_cmnd *sc, /* Endianness conversion if necessary */ diseed->ref_tag = cpu_to_le32(reftag); + diseed->ref_tag_tran = diseed->ref_tag; /* setup DISEED with the rest of the info */ bf_set(lpfc_sli4_sge_dif_optx, diseed, txop); @@ -2061,6 +2062,7 @@ lpfc_bg_setup_sgl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc, /* Endianness conversion if necessary */ diseed->ref_tag = cpu_to_le32(reftag); + diseed->ref_tag_tran = diseed->ref_tag; /* setup DISEED with the rest of the info */ bf_set(lpfc_sli4_sge_dif_optx, diseed, txop);