mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-03 19:24:02 +08:00
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>
This commit is contained in:
parent
115a4124ba
commit
a03a4219a4
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user