Lines Matching defs:new_ndlp

1666  * parameters of the @ndlp shall be copied to the new_ndlp, the @ndlp shall
1667 * be released and the new_ndlp shall be put on to the vport node list and
1671 * or inactive "new_ndlp" on the vport node list is assigned to the nlp_DID
1684 struct lpfc_nodelist *new_ndlp;
1706 new_ndlp = lpfc_findnode_wwpn(vport, &sp->portName);
1709 if (!new_ndlp || (new_ndlp == ndlp))
1716 lpfc_nlp_unreg_node(vport, new_ndlp);
1728 "new_ndlp x%x x%x x%x\n",
1730 (new_ndlp ? new_ndlp->nlp_DID : 0),
1731 (new_ndlp ? new_ndlp->nlp_flag : 0),
1732 (new_ndlp ? new_ndlp->nlp_fc4_type : 0));
1734 keepDID = new_ndlp->nlp_DID;
1737 memcpy(active_rrqs_xri_bitmap, new_ndlp->active_rrqs_xri_bitmap,
1740 /* At this point in this routine, we know new_ndlp will be
1743 * new_ndlp has the right value.
1746 keep_nlp_fc4_type = new_ndlp->nlp_fc4_type;
1747 new_ndlp->nlp_fc4_type = ndlp->nlp_fc4_type;
1750 lpfc_unreg_rpi(vport, new_ndlp);
1751 new_ndlp->nlp_DID = ndlp->nlp_DID;
1752 new_ndlp->nlp_prev_state = ndlp->nlp_prev_state;
1754 memcpy(new_ndlp->active_rrqs_xri_bitmap,
1760 spin_lock_irq(&new_ndlp->lock);
1761 keep_new_nlp_flag = new_ndlp->nlp_flag;
1763 new_ndlp->nlp_flag = ndlp->nlp_flag;
1765 /* if new_ndlp had NLP_UNREG_INP set, keep it */
1767 new_ndlp->nlp_flag |= NLP_UNREG_INP;
1769 new_ndlp->nlp_flag &= ~NLP_UNREG_INP;
1771 /* if new_ndlp had NLP_RPI_REGISTERED set, keep it */
1773 new_ndlp->nlp_flag |= NLP_RPI_REGISTERED;
1775 new_ndlp->nlp_flag &= ~NLP_RPI_REGISTERED;
1782 new_ndlp->nlp_flag |= NLP_DROPPED;
1784 new_ndlp->nlp_flag &= ~NLP_DROPPED;
1809 spin_unlock_irq(&new_ndlp->lock);
1813 keep_nlp_state = new_ndlp->nlp_state;
1814 lpfc_nlp_set_state(vport, new_ndlp, ndlp->nlp_state);
1817 keep_nrport = new_ndlp->nrport;
1818 new_ndlp->nrport = ndlp->nrport;
1823 * NPort ID. The new_ndlp portname matches the Rport's
1824 * portname. Reinstantiate the new_ndlp and reset the ndlp.
1828 new_ndlp->nlp_DID, keepDID);
1846 new_ndlp->nlp_DID, keepDID);
1850 /* The ndlp and new_ndlp both have WWPNs but are swapping
1862 /* Since we are switching over to the new_ndlp,
1885 "3173 PLOGI confirm exit: new_ndlp x%x x%x x%x\n",
1886 new_ndlp->nlp_DID, new_ndlp->nlp_flag,
1887 new_ndlp->nlp_fc4_type);
1889 return new_ndlp;