scsi: lpfc: Fix Lun Priority level shown as NA
authorJames Smart <jsmart2021@gmail.com>
Fri, 2 Jun 2017 04:06:59 +0000 (21:06 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 01:37:30 +0000 (21:37 -0400)
Lun Priority level shown as NA

Remote port is not getting registered for nameserver and fdmi.  Due to
which dfc SendCTPassThru cmd is failing.

Made changes to register the remote port for both.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_hbadisc.c

index 3ffcd92..055fedd 100644 (file)
@@ -4182,8 +4182,10 @@ lpfc_nlp_state_cleanup(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
 
        if (new_state ==  NLP_STE_MAPPED_NODE ||
            new_state == NLP_STE_UNMAPPED_NODE) {
-               if ((ndlp->nlp_fc4_type & NLP_FC4_FCP) ||
-                   (ndlp->nlp_DID == Fabric_DID)) {
+               if (ndlp->nlp_fc4_type & NLP_FC4_FCP ||
+                   ndlp->nlp_DID == Fabric_DID ||
+                   ndlp->nlp_DID == NameServer_DID ||
+                   ndlp->nlp_DID == FDMI_DID) {
                        vport->phba->nport_event_cnt++;
                        /*
                         * Tell the fc transport about the port, if we haven't