/* lps_public BFA LPS public functions Allocate a lport srvice tag.  */
struct bfa_lps_s* bfa_lps_alloc(struct bfa_s *bfa)
/* lps_public BFA LPS public functions Allocate a lport srvice tag.  */
struct bfa_lps_s* bfa_lps_alloc(struct bfa_s *bfa)
{
	struct bfa_lps_mod_s	*mod = BFA_LPS_MOD(bfa);
	struct bfa_lps_s	*lps = NULL;
	bfa_q_deq(&mod->lps_free_q, &lps);
	if (lps == NULL)
		return NULL;
	list_add_tail(&lps->qe, &mod->lps_active_q);
	bfa_sm_set_state(lps, bfa_lps_sm_init);
	return lps;
}