Просмотр исходного кода

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
Mohit Khanna 6 лет назад
Родитель
Сommit
513781344d
2 измененных файлов с 5 добавлено и 3 удалено
  1. 5 1
      hif/src/ce/ce_service.c
  2. 0 2
      hif/src/hif_napi.c

+ 5 - 1
hif/src/ce/ce_service.c

@@ -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);

+ 0 - 2
hif/src/hif_napi.c

@@ -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;
 	}