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:
@@ -295,10 +295,14 @@ bool hif_ce_service_should_yield(struct hif_softc *scn,
|
||||
|
||||
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,
|
||||
time_limit_reached,
|
||||
rxpkt_thresh_reached);
|
||||
}
|
||||
|
||||
return yield;
|
||||
}
|
||||
qdf_export_symbol(hif_ce_service_should_yield);
|
||||
|
@@ -1058,8 +1058,6 @@ void hif_napi_update_yield_stats(struct CE_state *ce_state,
|
||||
cpu_id = qdf_get_cpu();
|
||||
|
||||
if (unlikely(!napi_data->napis[ce_id])) {
|
||||
HIF_INFO("%s: NAPI info is NULL for ce id: %d",
|
||||
__func__, ce_id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user