/* Direct API to remove a target and its associated resources. This interface is used, for example, by vmware driver to remove target ports from the target list for a VM.  */
bfa_status_t bfa_fcs_rport_remove(struct bfa_fcs_rport_s *rport_in)
/* Direct API to remove a target and its associated resources. This interface is used, for example, by vmware driver to remove target ports from the target list for a VM.  */
bfa_status_t bfa_fcs_rport_remove(struct bfa_fcs_rport_s *rport_in)
{
	struct bfa_fcs_rport_s *rport;
	bfa_trc(rport_in->fcs, rport_in->pwwn);
	rport = bfa_fcs_port_get_rport_by_pwwn(rport_in->port, rport_in->pwwn);
	if (rport == NULL) {
		bfa_trc(rport_in->fcs, rport_in->pid);
		return BFA_STATUS_UNKNOWN_RWWN;
	}
	return BFA_STATUS_OK;
}