]> www.infradead.org Git - users/willy/xarray.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)
commitab0a82991fcaae0b0d895c0aea36e91730c2d00a
treee1f06869fb4c885929338c1d260a0f7d60de9876
parentd21481994039d36aec21b56c4710aae684e107f1
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