]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
scsi/lpfc: Fix SLI4 BlockGuard behavior when protection data is generated by HBA...
authorVaios Papadimitriou <vaios.papadimitriou@emulex.com>
Tue, 28 Aug 2012 22:32:19 +0000 (15:32 -0700)
committerJerry Snitselaar <jerry.snitselaar@oracle.com>
Wed, 5 Sep 2012 19:25:39 +0000 (12:25 -0700)
commit id: acd6859b084d1e1b3ec8bc9befe6532223260d33

Signed-off-by: Jerry Snitselaar <jerry.snitselaar@oracle.com>
drivers/scsi/lpfc/lpfc_scsi.c

index fd1fcda4a392adee030a5d54d91a7e4506f67e0a..d2a61e947c0e5a9da97886b7b92169e865ded72f 100644 (file)
@@ -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);