/* Waiting for rport create response from firmware. A delete is pending.  */
static void bfa_rport_sm_delete_pending(struct bfa_rport_s *rp, enum bfa_rport_event event)
/* Waiting for rport create response from firmware. A delete is pending.  */
static void bfa_rport_sm_delete_pending(struct bfa_rport_s *rp, enum bfa_rport_event event)
{
	bfa_trc(rp->bfa, rp->rport_tag);
	bfa_trc(rp->bfa, event);
	switch (event) {
	case BFA_RPORT_SM_FWRSP:
		bfa_stats(rp, sm_delp_fwrsp);
		if (bfa_rport_send_fwdelete(rp))
			bfa_sm_set_state(rp, bfa_rport_sm_deleting);
		else
			bfa_sm_set_state(rp, bfa_rport_sm_deleting_qfull);
		break;
	case BFA_RPORT_SM_HWFAIL:
		bfa_stats(rp, sm_delp_hwf);
		bfa_sm_set_state(rp, bfa_rport_sm_uninit);
		bfa_rport_free(rp);
		break;
	default:
		bfa_stats(rp, sm_delp_unexp);
		bfa_assert(0);
	}
}