aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Smart <james.smart@broadcom.com>2016-07-06 15:36:12 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2016-07-15 15:25:06 -0400
commita03a4219a4e0b3e53078a2f97fee0b5a4cab2a20 (patch)
treeaaed727b0178ace54787f0e7bdabf916a1a77120
parent115a4124bae6697b375e150deaed3a4ffc6580e1 (diff)
lpfc: Disable FDMI probing if not connected to a fabric
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>
-rw-r--r--drivers/scsi/lpfc/lpfc_ct.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c
index a38816e96654..63e48d4277b0 100644
--- 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)
1510 if (!lpfc_is_link_up(phba)) 1510 if (!lpfc_is_link_up(phba))
1511 return; 1511 return;
1512 1512
1513 /* Must be connected to a Fabric */
1514 if (!(vport->fc_flag & FC_FABRIC))
1515 return;
1516
1513 if (!(vport->fdmi_port_mask & LPFC_FDMI_PORT_ATTR_num_disc)) 1517 if (!(vport->fdmi_port_mask & LPFC_FDMI_PORT_ATTR_num_disc))
1514 return; 1518 return;
1515 1519