]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
scsi: lpfc: Fix loop mode target discovery
authorDick Kennedy <dick.kennedy@broadcom.com>
Fri, 16 Feb 2018 16:01:00 +0000 (17:01 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 14 Mar 2018 10:42:21 +0000 (11:42 +0100)
commit1ebfffdd6baabe3f43caab7888184f8a2cacbde2
tree1b78ecf5d93251a0bbd22796974c64a2f67f8b1f
parent8b85b412d0ea8925483975f6827920f1566718f6
scsi: lpfc: Fix loop mode target discovery

BugLink: http://bugs.launchpad.net/bugs/1746970
The driver does not discover targets when in loop mode.

The NLP type is correctly getting set when a fabric connection is
detected but, not for loop. The unknown NLP type means that the driver
does not issue a PRLI when in loop topology. Thus target discovery
fails.

Fix by checking the topology during discovery.  If it is loop, set the
NLP FC4 type to FCP.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 2877cbffb79ed121a6bcc5edbe629d3aba36cd29)
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/scsi/lpfc/lpfc_nportdisc.c