projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
115a412
)
lpfc: Disable FDMI probing if not connected to a fabric
author
James Smart
<james.smart@broadcom.com>
Wed, 6 Jul 2016 19:36:12 +0000
(12:36 -0700)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Fri, 15 Jul 2016 19:25:06 +0000
(15:25 -0400)
Disable FDMI probing if not connected to a fabric
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>
drivers/scsi/lpfc/lpfc_ct.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/lpfc/lpfc_ct.c
b/drivers/scsi/lpfc/lpfc_ct.c
index a38816e96654963c3785bd93f31359ce541b3ee1..63e48d4277b025173789d16e9c415ab3a0e9d603 100644
(file)
--- a/
drivers/scsi/lpfc/lpfc_ct.c
+++ b/
drivers/scsi/lpfc/lpfc_ct.c
@@
-1510,6
+1510,10
@@
lpfc_fdmi_num_disc_check(struct lpfc_vport *vport)
if (!lpfc_is_link_up(phba))
return;
+ /* Must be connected to a Fabric */
+ if (!(vport->fc_flag & FC_FABRIC))
+ return;
+
if (!(vport->fdmi_port_mask & LPFC_FDMI_PORT_ATTR_num_disc))
return;