qcacmn: Donot update NAPI stats for CE with NAPI disabled

In case NAPI is disabled on a CE (and tasklets are used instead), donot
update NAPI stats for the CE.

Change-Id: Iaf464df9a8520d705f73f7be355736ae2f1aaf5b
CRs-Fixed: 2412599
This commit is contained in:
Mohit Khanna
2019-03-11 19:12:48 -07:00
committed by nshrivas
parent 2d26d82348
commit 513781344d
2 changed files with 5 additions and 3 deletions

View File

@@ -295,10 +295,14 @@ bool hif_ce_service_should_yield(struct hif_softc *scn,
yield = time_limit_reached || rxpkt_thresh_reached; yield = time_limit_reached || rxpkt_thresh_reached;
if (yield && ce_state->htt_rx_data) if (yield &&
ce_state->htt_rx_data &&
hif_napi_enabled(GET_HIF_OPAQUE_HDL(scn), ce_state->id)) {
hif_napi_update_yield_stats(ce_state, hif_napi_update_yield_stats(ce_state,
time_limit_reached, time_limit_reached,
rxpkt_thresh_reached); rxpkt_thresh_reached);
}
return yield; return yield;
} }
qdf_export_symbol(hif_ce_service_should_yield); qdf_export_symbol(hif_ce_service_should_yield);

View File

@@ -1058,8 +1058,6 @@ void hif_napi_update_yield_stats(struct CE_state *ce_state,
cpu_id = qdf_get_cpu(); cpu_id = qdf_get_cpu();
if (unlikely(!napi_data->napis[ce_id])) { if (unlikely(!napi_data->napis[ce_id])) {
HIF_INFO("%s: NAPI info is NULL for ce id: %d",
__func__, ce_id);
return; return;
} }