Commit f994c6d1 authored by Quinn Tran's avatar Quinn Tran Committed by Martin K. Petersen

scsi: qla2xxx: Consolidate fabric scan

Consolidate scan for fabric loop and fabric topologies into a single scan.

Link: https://lore.kernel.org/r/20191217220617.28084-11-hmadhani@marvell.comSigned-off-by: default avatarQuinn Tran <qutran@marvell.com>
Signed-off-by: default avatarHimanshu Madhani <hmadhani@marvell.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 17e64648
...@@ -4939,12 +4939,8 @@ qla2x00_configure_loop(scsi_qla_host_t *vha) ...@@ -4939,12 +4939,8 @@ qla2x00_configure_loop(scsi_qla_host_t *vha)
qla2x00_get_data_rate(vha); qla2x00_get_data_rate(vha);
/* Determine what we need to do */ /* Determine what we need to do */
if (ha->current_topology == ISP_CFG_FL && if ((ha->current_topology == ISP_CFG_FL ||
(test_bit(LOCAL_LOOP_UPDATE, &flags))) { ha->current_topology == ISP_CFG_F) &&
set_bit(RSCN_UPDATE, &flags);
} else if (ha->current_topology == ISP_CFG_F &&
(test_bit(LOCAL_LOOP_UPDATE, &flags))) { (test_bit(LOCAL_LOOP_UPDATE, &flags))) {
set_bit(RSCN_UPDATE, &flags); set_bit(RSCN_UPDATE, &flags);
......
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