mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-22 02:20:40 +00:00
scsi: qla2xxx: edif: Fix n2n login retry for secure device
After initiator has burned up all login retries, target authentication
application begins to run. This triggers a link bounce on target side.
Initiator will attempt another login. Due to N2N, the PRLI [nvme | fcp] can
fail because of the mode mismatch with target. This patch add a few more
login retries to revive the connection.
Link: https://lore.kernel.org/r/20220607044627.19563-11-njavali@marvell.com
Fixes: 4de067e5df
("scsi: qla2xxx: edif: Add N2N support for EDIF")
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
789d54a417
commit
aec55325dd
1 changed files with 7 additions and 0 deletions
|
@ -2123,6 +2123,13 @@ qla24xx_handle_prli_done_event(struct scsi_qla_host *vha, struct event_arg *ea)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (N2N_TOPO(vha->hw)) {
|
if (N2N_TOPO(vha->hw)) {
|
||||||
|
if (ea->fcport->n2n_link_reset_cnt ==
|
||||||
|
vha->hw->login_retry_count &&
|
||||||
|
ea->fcport->flags & FCF_FCSP_DEVICE) {
|
||||||
|
/* remote authentication app just started */
|
||||||
|
ea->fcport->n2n_link_reset_cnt = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (ea->fcport->n2n_link_reset_cnt <
|
if (ea->fcport->n2n_link_reset_cnt <
|
||||||
vha->hw->login_retry_count) {
|
vha->hw->login_retry_count) {
|
||||||
ea->fcport->n2n_link_reset_cnt++;
|
ea->fcport->n2n_link_reset_cnt++;
|
||||||
|
|
Loading…
Reference in a new issue