linux-stable/drivers/scsi/lpfc
James Smart 336d636154 scsi: lpfc: Fix port stuck in bypassed state after LIP in PT2PT topology
After issuing a LIP, a specific target vendor does not ACC the FLOGI that
lpfc sends.  However, it does send its own FLOGI that lpfc ACCs.  The
target then establishes the port IDs by sending a PLOGI.  lpfc PLOGI_ACCs
and starts the RPI registration for DID 0x000001.  The target then sends a
LOGO to the fabric DID.  lpfc is currently treating the LOGO from the
fabric DID as a link down and cleans up all the ndlps.  The ndlp for DID
0x000001 is put back into NPR and discovery stops, leaving the port in
stuck in bypassed mode.

Change lpfc behavior such that if a LOGO is received for the fabric DID in
PT2PT topology skip the lpfc_linkdown_port() routine and just move the
fabric DID back to NPR.

Link: https://lore.kernel.org/r/20220603174329.63777-7-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-06-07 21:38:18 -04:00
..
lpfc.h scsi: lpfc: Rework FDMI initialization after link up 2022-05-10 22:12:04 -04:00
lpfc_attr.c scsi: lpfc: Copyright updates for 14.2.0.2 patches 2022-04-18 22:48:48 -04:00
lpfc_attr.h
lpfc_bsg.c scsi: lpfc: Fix additional reference counting in lpfc_bsg_rport_els() 2022-05-02 16:59:11 -04:00
lpfc_bsg.h scsi: lpfc: Copyright updates for 14.0.0.1 patches 2021-08-24 22:56:34 -04:00
lpfc_compat.h
lpfc_crtn.h scsi: lpfc: Resolve some cleanup issues following abort path refactoring 2022-06-07 21:38:17 -04:00
lpfc_ct.c scsi: lpfc: Correct BDE type for XMIT_SEQ64_WQE in lpfc_ct_reject_event() 2022-06-07 21:38:17 -04:00
lpfc_debugfs.c scsi: lpfc: Use kcalloc() 2022-03-15 00:52:05 -04:00
lpfc_debugfs.h scsi: lpfc: Adjust CMF total bytes and rxmonitor 2021-12-06 22:35:37 -05:00
lpfc_disc.h scsi: lpfc: Allow fabric node recovery if recovery is in progress before devloss 2021-10-20 23:33:46 -04:00
lpfc_els.c scsi: lpfc: Resolve NULL ptr dereference after an ELS LOGO is aborted 2022-06-07 21:38:18 -04:00
lpfc_hbadisc.c scsi: lpfc: Rework FDMI initialization after link up 2022-05-10 22:12:04 -04:00
lpfc_hw.h scsi: lpfc: Add support for ATTO Fibre Channel devices 2022-06-01 22:40:59 -04:00
lpfc_hw4.h scsi: lpfc: Expand setting ELS_ID field in ELS_REQUEST64_WQE 2022-04-18 22:48:47 -04:00
lpfc_ids.h scsi: lpfc: Add support for ATTO Fibre Channel devices 2022-06-01 22:40:59 -04:00
lpfc_init.c scsi: lpfc: Resolve some cleanup issues following SLI path refactoring 2022-06-07 21:38:17 -04:00
lpfc_logmsg.h scsi: lpfc: Copyright updates for 14.2.0.2 patches 2022-04-18 22:48:48 -04:00
lpfc_mbox.c scsi: lpfc: Copyright updates for 14.2.0.2 patches 2022-04-18 22:48:48 -04:00
lpfc_mem.c scsi: lpfc: Copyright updates for 14.0.0.1 patches 2021-08-24 22:56:34 -04:00
lpfc_nl.h
lpfc_nportdisc.c scsi: lpfc: Fix port stuck in bypassed state after LIP in PT2PT topology 2022-06-07 21:38:18 -04:00
lpfc_nvme.c scsi: lpfc: Resolve some cleanup issues following abort path refactoring 2022-06-07 21:38:17 -04:00
lpfc_nvme.h scsi: lpfc: Copyright updates for 14.2.0.0 patches 2022-03-15 13:51:50 -04:00
lpfc_nvmet.c scsi: lpfc: Fix field overload in lpfc_iocbq data structure 2022-04-18 22:48:46 -04:00
lpfc_scsi.c scsi: lpfc: Address NULL pointer dereference after starget_to_rport() 2022-06-07 21:38:17 -04:00
lpfc_scsi.h scsi: lpfc: Copyright updates for 14.0.0.0 patches 2021-07-27 00:06:41 -04:00
lpfc_sli.c scsi: lpfc: Resolve some cleanup issues following SLI path refactoring 2022-06-07 21:38:17 -04:00
lpfc_sli.h scsi: lpfc: Refactor cleanup of mailbox commands 2022-04-18 22:48:47 -04:00
lpfc_sli4.h scsi: lpfc: Change FA-PWWN detection methodology 2022-04-18 22:48:47 -04:00
lpfc_version.h scsi: lpfc: Update lpfc version to 14.2.0.3 2022-05-10 22:12:04 -04:00
lpfc_vmid.c scsi: lpfc: Commonize VMID code location 2022-05-19 20:24:56 -04:00
lpfc_vport.c scsi: lpfc: Copyright updates for 14.2.0.2 patches 2022-04-18 22:48:48 -04:00
lpfc_vport.h
Makefile scsi: lpfc: Commonize VMID code location 2022-05-19 20:24:56 -04:00