Skip to content

Commit 4705f10

Browse files
Quinn Tranmartinkpetersen
authored andcommitted
scsi: qla2xxx: Fix FC-AL connection target discovery
Commit 7f147f9 ("scsi: qla2xxx: Fix N2N target discovery with Local loop") fixed N2N target discovery for local loop. However, same code is used for FC-AL discovery as well. Added check to make sure we are bypassing area and domain check only in N2N topology for target discovery. Fixes: 7f147f9 ("scsi: qla2xxx: Fix N2N target discovery with Local loop") Cc: stable@vger.kernel.org # 5.0+ Signed-off-by: Quinn Tran <qtran@marvell.com> Signed-off-by: Himanshu Madhani <hmadhani@marvell.com> Reviewed-by: Ewan D. Milne <emilne@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 17605af commit 4705f10

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/scsi/qla2xxx/qla_init.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4991,6 +4991,13 @@ qla2x00_configure_local_loop(scsi_qla_host_t *vha)
49914991
if ((domain & 0xf0) == 0xf0)
49924992
continue;
49934993

4994+
/* Bypass if not same domain and area of adapter. */
4995+
if (area && domain && ((area != vha->d_id.b.area) ||
4996+
(domain != vha->d_id.b.domain)) &&
4997+
(ha->current_topology == ISP_CFG_NL))
4998+
continue;
4999+
5000+
49945001
/* Bypass invalid local loop ID. */
49955002
if (loop_id > LAST_LOCAL_LOOP_ID)
49965003
continue;

0 commit comments

Comments
 (0)