]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: lpfc: Fix PRLI handling when topology type changes
authorJames Smart <jsmart2021@gmail.com>
Tue, 30 Jan 2018 23:58:50 +0000 (15:58 -0800)
committerJack Vogel <jack.vogel@oracle.com>
Thu, 8 Mar 2018 04:28:42 +0000 (20:28 -0800)
commited7d987ab3943aeb3e8f0bcc61ee45537e7d070a
tree7ee025e937ea567eb3c78a53cd96ce36990584b7
parentb7bdc2a677bf8cc0ec6d46aa8585e2504c881c64
scsi: lpfc: Fix PRLI handling when topology type changes

Orabug: 27631736

The lpfc driver does not discover a target when the topology changes
from switched-fabric to direct-connect. The target rejects the PRLI from
the initiator in direct-connect as the driver is using the old S_ID from
the switched topology.

The driver was inappropriately clearing the VP bit to register the VPI,
which is what is associated with the S_ID.

Fix by leaving the VP bit set (it was set earlier) and as the VFI is
being re-registered, set the UPDT bit.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 2c3b2a8f652566c5b35d945f0c8146555d2062ec)
Signed-off-by: Dick dkennedy <dick.kennedy@broadcom.com>
Signed-off-by: Dan Duval <dan.duval@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/scsi/lpfc/lpfc_mbox.c