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:
Родитель
115a4124ba
Коммит
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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче