]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Fix REG_RPI fails on SLI4 HBA putting NPort into NPR state (CR 126230)
authorVaios Papadimitriou <vaios.papadimitriou@emulex.com>
Tue, 8 May 2012 22:01:23 +0000 (17:01 -0500)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Wed, 9 May 2012 00:01:23 +0000 (17:01 -0700)
When we receive a PLOGI, the ndlp unexpectedly goes into the NPR state.
This is because the ndlp was not properly being unregistered.

commit id: 6b5151fd7baec6812fece993ddd7a2cf9fd0125f

Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
drivers/scsi/lpfc/lpfc_nportdisc.c

index e8bb0055994316a790db82111163295efa5ba7be..de002a2fe29baf04223edecccd301f950b399b7f 100644 (file)
@@ -385,6 +385,8 @@ lpfc_rcv_plogi(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
        if (!mbox)
                goto out;
 
+       lpfc_unreg_rpi(vport, ndlp);
+
        rc = lpfc_reg_rpi(phba, vport->vpi, icmd->un.rcvels.remoteID,
                            (uint8_t *) sp, mbox, ndlp->nlp_rpi);
        if (rc) {