Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a03a4219 authored by James Smart's avatar James Smart Committed by Martin K. Petersen
Browse files

lpfc: Disable FDMI probing if not connected to a fabric



Disable FDMI probing if not connected to a fabric

Signed-off-by: default avatarDick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: default avatarJames Smart <james.smart@broadcom.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 115a4124
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;