/* PWWN based Lookup for a R-Port in the Port R-Port Queue  */
struct bfa_fcs_rport_s* bfa_fcs_port_get_rport_by_pwwn(struct bfa_fcs_port_s *port, wwn_t pwwn)
/* PWWN based Lookup for a R-Port in the Port R-Port Queue  */
struct bfa_fcs_rport_s* bfa_fcs_port_get_rport_by_pwwn(struct bfa_fcs_port_s *port, wwn_t pwwn)
{
	struct bfa_fcs_rport_s *rport;
	struct list_head *qe;
	list_for_each(qe, &port->rport_q) {
		rport = (struct bfa_fcs_rport_s *)qe;
		if (wwn_is_equal(rport->pwwn, pwwn))
			return rport;
	}
	bfa_trc(port->fcs, pwwn);
	return NULL;
}