Lines Matching refs:evq_max
124 unsigned int evq_max; in sfxge_estimate_rsrc_limits() local
140 evq_max = MIN(MAX(rss_getnumbuckets(), 1), EFX_MAXRSS); in sfxge_estimate_rsrc_limits()
142 evq_max = MIN(mp_ncpus, EFX_MAXRSS); in sfxge_estimate_rsrc_limits()
145 evq_max = MIN(evq_max, sc->max_rss_channels); in sfxge_estimate_rsrc_limits()
150 limits.edl_max_evq_count = evq_max; in sfxge_estimate_rsrc_limits()
152 limits.edl_max_txq_count = evq_max + SFXGE_EVQ0_N_TXQ(sc) - 1; in sfxge_estimate_rsrc_limits()
154 limits.edl_max_rxq_count = evq_max; in sfxge_estimate_rsrc_limits()
171 sc->evq_max = MIN(evq_allocated, evq_max); in sfxge_estimate_rsrc_limits()
172 sc->evq_max = MIN(rxq_allocated, sc->evq_max); in sfxge_estimate_rsrc_limits()
173 sc->evq_max = MIN(txq_allocated - (SFXGE_EVQ0_N_TXQ(sc) - 1), in sfxge_estimate_rsrc_limits()
174 sc->evq_max); in sfxge_estimate_rsrc_limits()
176 KASSERT(sc->evq_max <= evq_max, in sfxge_estimate_rsrc_limits()
180 if (sc->evq_max < rss_getnumbuckets()) in sfxge_estimate_rsrc_limits()
184 sc->evq_max, rss_getnumbuckets()); in sfxge_estimate_rsrc_limits()