Skip to content

Commit f6e327f

Browse files
Quinn Tranmartinkpetersen
authored andcommitted
scsi: qla2xxx: Fix NVMe | FCP personality change
Currently driver saves the personality type (FCP|NVMe) at the start of first discovery of the remote device. If the remote device personality do change over time, then qla driver needs to present that to user to decide. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Quinn Tran <[email protected]> Signed-off-by: Nilesh Javali <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 1dc64a3 commit f6e327f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

drivers/scsi/qla2xxx/qla_gs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3502,6 +3502,7 @@ void qla24xx_async_gnnft_done(scsi_qla_host_t *vha, srb_t *sp)
35023502
continue;
35033503
fcport->scan_state = QLA_FCPORT_FOUND;
35043504
fcport->last_rscn_gen = fcport->rscn_gen;
3505+
fcport->fc4_type = rp->fc4type;
35053506
found = true;
35063507
/*
35073508
* If device was not a fabric device before.

drivers/scsi/qla2xxx/qla_init.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,11 +1610,12 @@ int qla24xx_fcport_handle_login(struct scsi_qla_host *vha, fc_port_t *fcport)
16101610
u16 sec;
16111611

16121612
ql_dbg(ql_dbg_disc, vha, 0x20d8,
1613-
"%s %8phC DS %d LS %d P %d fl %x confl %p rscn %d|%d login %d lid %d scan %d\n",
1613+
"%s %8phC DS %d LS %d P %d fl %x confl %p rscn %d|%d login %d lid %d scan %d fc4type %x\n",
16141614
__func__, fcport->port_name, fcport->disc_state,
16151615
fcport->fw_login_state, fcport->login_pause, fcport->flags,
16161616
fcport->conflict, fcport->last_rscn_gen, fcport->rscn_gen,
1617-
fcport->login_gen, fcport->loop_id, fcport->scan_state);
1617+
fcport->login_gen, fcport->loop_id, fcport->scan_state,
1618+
fcport->fc4_type);
16181619

16191620
if (fcport->scan_state != QLA_FCPORT_FOUND)
16201621
return 0;

0 commit comments

Comments
 (0)