qcacmn: Handle wbm_internal_error in tx completions

Handle wbm_internal_error in tx completions by releasing
associated descriptors and buffers.

Change-Id: I94d334c90c0514674323430fe53da72fb5424576
This commit is contained in:
Pavankumar Nandeshwar
2019-10-07 12:55:16 +05:30
committed by nshrivas
parent 2a7ed0abd3
commit b86ddaf205
6 changed files with 181 additions and 4 deletions

View File

@@ -3472,7 +3472,16 @@ more_data:
QDF_TRACE(QDF_MODULE_ID_DP,
QDF_TRACE_LEVEL_ERROR,
"Tx comp wbm_internal_error!!!\n");
DP_STATS_INC(soc, tx.wbm_internal_error, 1);
DP_STATS_INC(soc, tx.wbm_internal_error[WBM_INT_ERROR_ALL], 1);
if (HAL_TX_COMP_RELEASE_SOURCE_REO ==
buffer_src)
dp_handle_wbm_internal_error(
soc,
tx_comp_hal_desc,
hal_tx_comp_get_buffer_type(
tx_comp_hal_desc));
continue;
} else {
qdf_assert_always(0);