|
@@ -1844,11 +1844,6 @@ static void ce_fastpath_rx_handle(struct CE_state *ce_state,
|
|
|
dest_ring->write_index = write_index;
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_SLUB_DEBUG_ON
|
|
|
-#define MSG_FLUSH_NUM 16
|
|
|
-#else /* PERF build */
|
|
|
-#define MSG_FLUSH_NUM 32
|
|
|
-#endif /* SLUB_DEBUG_ON */
|
|
|
/**
|
|
|
* ce_per_engine_service_fast() - CE handler routine to service fastpath msgs
|
|
|
* @scn: hif_context
|
|
@@ -1945,15 +1940,15 @@ more_data:
|
|
|
* we are not posting the buffers back instead
|
|
|
* reusing the buffers
|
|
|
*/
|
|
|
- if (nbuf_cmpl_idx == MSG_FLUSH_NUM) {
|
|
|
+ if (nbuf_cmpl_idx == scn->ce_service_max_rx_ind_flush) {
|
|
|
hif_record_ce_desc_event(scn, ce_state->id,
|
|
|
FAST_RX_SOFTWARE_INDEX_UPDATE,
|
|
|
NULL, NULL, sw_index, 0);
|
|
|
dest_ring->sw_index = sw_index;
|
|
|
ce_fastpath_rx_handle(ce_state, cmpl_msdus,
|
|
|
- MSG_FLUSH_NUM, ctrl_addr);
|
|
|
+ nbuf_cmpl_idx, ctrl_addr);
|
|
|
|
|
|
- ce_state->receive_count += MSG_FLUSH_NUM;
|
|
|
+ ce_state->receive_count += nbuf_cmpl_idx;
|
|
|
if (qdf_unlikely(hif_ce_service_should_yield(
|
|
|
scn, ce_state))) {
|
|
|
ce_state->force_break = 1;
|