qcacmn: Fix and Clean up code under NAPI_YIELD_BUDGET_BASED

Enable interrupts after processing the available
rx buffers on CE5 or complete napi after reaching the budget.

NAPI_YIELD_BUDGET_BASED:
This flag enables napi to return once the budget is exceeded,
or after processing the available packets and re-enables
interrupt and this feature doesn't honor the napi
yeild time configured.Napi budget will be configured as
256 for this feature

Change-Id: I75ac75ede46124bc773e3625173f33ca29da8142
CRs-fixed: 1094034
This commit is contained in:
Nandha Kishore Easwaran
2016-11-29 11:01:15 +05:30
committed by qcabuildsw
parent db5e8c34f9
commit 858a769d6b
5 changed files with 15 additions and 13 deletions

View File

@@ -766,7 +766,9 @@ int hif_napi_poll(struct hif_opaque_softc *hif_ctx, struct napi_struct *napi,
if (ce_state && (!ce_check_rx_pending(ce_state) || 0 == rc)) {
#endif
napi_info->stats[cpu].napi_completes++;
#ifdef NAPI_YIELD_BUDGET_BASED
ce_state->force_break = 0;
#endif
hif_record_ce_desc_event(hif, ce_state->id, NAPI_COMPLETE,
NULL, NULL, 0);
if (normalized >= budget)