Skip to content

Commit af22f0c

Browse files
Roman Bolshakovmartinkpetersen
authored andcommitted
scsi: qla2xxx: Ignore PORT UPDATE after N2N PLOGI
PORT UPDATE asynchronous event is generated on the host that issues PLOGI ELS (in the case of higher WWPN). In that case, the event shouldn't be handled as it sets unwanted DPC flags (i.e. LOOP_RESYNC_NEEDED) that trigger link flap. Ignore the event if the host has higher WWPN, but handle otherwise. Cc: Quinn Tran <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Himanshu Madhani <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Tested-by: Hannes Reinecke <[email protected]> Signed-off-by: Roman Bolshakov <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent dabc5ec commit af22f0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/scsi/qla2xxx/qla_mbx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3921,6 +3921,7 @@ qla24xx_report_id_acquisition(scsi_qla_host_t *vha,
39213921
vha->d_id.b24 = 0;
39223922
vha->d_id.b.al_pa = 1;
39233923
ha->flags.n2n_bigger = 1;
3924+
ha->flags.n2n_ae = 0;
39243925

39253926
id.b.al_pa = 2;
39263927
ql_dbg(ql_dbg_async, vha, 0x5075,
@@ -3931,6 +3932,7 @@ qla24xx_report_id_acquisition(scsi_qla_host_t *vha,
39313932
"Format 1: Remote login - Waiting for WWPN %8phC.\n",
39323933
rptid_entry->u.f1.port_name);
39333934
ha->flags.n2n_bigger = 0;
3935+
ha->flags.n2n_ae = 1;
39343936
}
39353937
qla24xx_post_newsess_work(vha, &id,
39363938
rptid_entry->u.f1.port_name,
@@ -3942,7 +3944,6 @@ qla24xx_report_id_acquisition(scsi_qla_host_t *vha,
39423944
/* if our portname is higher then initiate N2N login */
39433945

39443946
set_bit(N2N_LOGIN_NEEDED, &vha->dpc_flags);
3945-
ha->flags.n2n_ae = 1;
39463947
return;
39473948
break;
39483949
case TOPO_FL:

0 commit comments

Comments
 (0)