/* This routine looks up the ndlp lists for the given WWPN. If WWPN found it returns the node element list pointer else return NULL.  */
struct lpfc_nodelist* lpfc_findnode_wwpn(struct lpfc_vport *vport, struct lpfc_name *wwpn)
/* This routine looks up the ndlp lists for the given WWPN. If WWPN found it returns the node element list pointer else return NULL.  */
struct lpfc_nodelist* lpfc_findnode_wwpn(struct lpfc_vport *vport, struct lpfc_name *wwpn)
{
	struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
	struct lpfc_nodelist *ndlp;
	spin_lock_irq(shost->host_lock);
	ndlp = __lpfc_find_node(vport, lpfc_filter_by_wwpn, wwpn);
	spin_unlock_irq(shost->host_lock);
	return ndlp;
}