scsi: qla2xxx: edif: Fix n2n discovery issue with secure target
authorQuinn Tran <qutran@marvell.com>
Tue, 7 Jun 2022 04:46:25 +0000 (21:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:39 +0000 (14:23 +0200)
commitfd2c194089eb29e0122c916941f57779fb5df415
treedede34dc9ef8ed36c85d09ba2c3c46661c97642e
parentba051e1fe73978e82e68739435da16d97d648128
scsi: qla2xxx: edif: Fix n2n discovery issue with secure target

[ Upstream commit 789d54a4178634850e441f60c0326124138e7269 ]

User failed to see disk via n2n topology. Driver used up all login retries
before authentication application started. When authentication application
started, driver did not have enough login retries to connect securely. On
app_start, driver will reset the login retry attempt count.

Link: https://lore.kernel.org/r/20220607044627.19563-10-njavali@marvell.com
Fixes: 4de067e5df12 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qla2xxx/qla_edif.c