Commit bfdaa761 authored by Sarang Radke's avatar Sarang Radke Committed by James Bottomley

[SCSI] qla2xxx: Fix to make conditional decision based on port number.

Signed-off-by: default avatarGiridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent d5459083
...@@ -739,11 +739,11 @@ qla2xxx_get_flt_info(scsi_qla_host_t *vha, uint32_t flt_addr) ...@@ -739,11 +739,11 @@ qla2xxx_get_flt_info(scsi_qla_host_t *vha, uint32_t flt_addr)
ha->flt_region_gold_fw = start; ha->flt_region_gold_fw = start;
break; break;
case FLT_REG_FCP_PRIO_0: case FLT_REG_FCP_PRIO_0:
if (!(PCI_FUNC(ha->pdev->devfn) & 1)) if (ha->flags.port0)
ha->flt_region_fcp_prio = start; ha->flt_region_fcp_prio = start;
break; break;
case FLT_REG_FCP_PRIO_1: case FLT_REG_FCP_PRIO_1:
if (PCI_FUNC(ha->pdev->devfn) & 1) if (!ha->flags.port0)
ha->flt_region_fcp_prio = start; ha->flt_region_fcp_prio = start;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment