scsi: qla2xxx: Disable T10-DIF feature with FC-NVMe during probe
authorGiridhar Malavali <gmalavali@marvell.com>
Tue, 2 Apr 2019 21:24:24 +0000 (14:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Apr 2019 03:11:36 +0000 (23:11 -0400)
With FC-NVMe enabled, driver does not support T10 DIF/DIX.  This patch
disables T10-PI information when ql2xnvmeenable is set.

Signed-off-by: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c

index 79d5ea8359241184a2a98f85c6d0b6b52cce854f..6671566632e0436472aa9c1cbe33b340e32818bd 100644 (file)
@@ -2899,6 +2899,10 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
        /* This may fail but that's ok */
        pci_enable_pcie_error_reporting(pdev);
 
+       /* Turn off T10-DIF when FC-NVMe is enabled */
+       if (ql2xnvmeenable)
+               ql2xenabledif = 0;
+
        ha = kzalloc(sizeof(struct qla_hw_data), GFP_KERNEL);
        if (!ha) {
                ql_log_pci(ql_log_fatal, pdev, 0x0009,