]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qedf: Keep track of num of pending flogi
authorSaurav Kashyap <skashyap@marvell.com>
Thu, 16 Apr 2020 08:43:06 +0000 (01:43 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 17 Apr 2020 21:55:23 +0000 (17:55 -0400)
commit2fa80547860f99d2844d3f8bd37f49f8d171b8a1
treee1f06869fb4c885929338c1d260a0f7d60de9876
parent5c301529eea2bf42f99406393efc61f65d71a1e8
scsi: qedf: Keep track of num of pending flogi

If a port is brought down for an extended period of time, the fipvlan
counter gets exhausted and the driver will fall back to default VLAN 1002
and call fcoe_ctlr_link_up to log in. However, the switch will discard the
FLOGI attempt because the VLAN is now different.

Keep track of the number of FLOGI attempts and if a threshold of
QEDF_FLOGI_RETRY_CNT is exceeded, perform a context soft reset.

Link: https://lore.kernel.org/r/20200416084314.18851-2-skashyap@marvell.com
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf.h
drivers/scsi/qedf/qedf_main.c