qcacmn: Rate limit excess logs in Tx completion path
Rate limit excess logs in Tx descriptor completion path Change-Id: I737e0e55c2032f89a002adb60fbb68932bef77e0 CRs-Fixed: 2893995
This commit is contained in:

committed by
snandini

parent
08148f21fa
commit
65b108ef77
@@ -4279,20 +4279,14 @@ void dp_tx_process_htt_completion(struct dp_soc *soc,
|
|||||||
* continue to next descriptor
|
* continue to next descriptor
|
||||||
*/
|
*/
|
||||||
if ((tx_desc->vdev_id == DP_INVALID_VDEV_ID) && !tx_desc->flags) {
|
if ((tx_desc->vdev_id == DP_INVALID_VDEV_ID) && !tx_desc->flags) {
|
||||||
QDF_TRACE(QDF_MODULE_ID_DP,
|
dp_tx_comp_info_rl("Descriptor freed in vdev_detach %d", tx_desc->id);
|
||||||
QDF_TRACE_LEVEL_INFO,
|
|
||||||
"Descriptor freed in vdev_detach %d",
|
|
||||||
tx_desc->id);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
pdev = tx_desc->pdev;
|
pdev = tx_desc->pdev;
|
||||||
|
|
||||||
if (qdf_unlikely(tx_desc->pdev->is_pdev_down)) {
|
if (qdf_unlikely(tx_desc->pdev->is_pdev_down)) {
|
||||||
QDF_TRACE(QDF_MODULE_ID_DP,
|
dp_tx_comp_info_rl("pdev in down state %d", tx_desc->id);
|
||||||
QDF_TRACE_LEVEL_INFO,
|
|
||||||
"pdev in down state %d",
|
|
||||||
tx_desc->id);
|
|
||||||
dp_tx_comp_free_buf(soc, tx_desc);
|
dp_tx_comp_free_buf(soc, tx_desc);
|
||||||
dp_tx_desc_release(tx_desc, tx_desc->pool_id);
|
dp_tx_desc_release(tx_desc, tx_desc->pool_id);
|
||||||
return;
|
return;
|
||||||
@@ -4542,14 +4536,14 @@ more_data:
|
|||||||
if (qdf_unlikely
|
if (qdf_unlikely
|
||||||
((tx_desc->vdev_id == DP_INVALID_VDEV_ID) &&
|
((tx_desc->vdev_id == DP_INVALID_VDEV_ID) &&
|
||||||
!tx_desc->flags)) {
|
!tx_desc->flags)) {
|
||||||
dp_tx_comp_info("Descriptor freed in vdev_detach %d",
|
dp_tx_comp_info_rl("Descriptor freed in vdev_detach %d",
|
||||||
tx_desc_id);
|
tx_desc_id);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (qdf_unlikely(tx_desc->pdev->is_pdev_down)) {
|
if (qdf_unlikely(tx_desc->pdev->is_pdev_down)) {
|
||||||
dp_tx_comp_info("pdev in down state %d",
|
dp_tx_comp_info_rl("pdev in down state %d",
|
||||||
tx_desc_id);
|
tx_desc_id);
|
||||||
|
|
||||||
dp_tx_comp_free_buf(soc, tx_desc);
|
dp_tx_comp_free_buf(soc, tx_desc);
|
||||||
dp_tx_desc_release(tx_desc, tx_desc->pool_id);
|
dp_tx_desc_release(tx_desc, tx_desc->pool_id);
|
||||||
|
@@ -87,6 +87,8 @@ do { \
|
|||||||
#define dp_tx_comp_warn(params...) QDF_TRACE_WARN(QDF_MODULE_ID_DP_TX_COMP, params)
|
#define dp_tx_comp_warn(params...) QDF_TRACE_WARN(QDF_MODULE_ID_DP_TX_COMP, params)
|
||||||
#define dp_tx_comp_info(params...) \
|
#define dp_tx_comp_info(params...) \
|
||||||
__QDF_TRACE_FL(QDF_TRACE_LEVEL_INFO_HIGH, QDF_MODULE_ID_DP_TX_COMP, ## params)
|
__QDF_TRACE_FL(QDF_TRACE_LEVEL_INFO_HIGH, QDF_MODULE_ID_DP_TX_COMP, ## params)
|
||||||
|
#define dp_tx_comp_info_rl(params...) \
|
||||||
|
__QDF_TRACE_RL(QDF_TRACE_LEVEL_INFO_HIGH, QDF_MODULE_ID_DP_TX_COMP, ## params)
|
||||||
#define dp_tx_comp_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_DP_TX_COMP, params)
|
#define dp_tx_comp_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_DP_TX_COMP, params)
|
||||||
|
|
||||||
#ifndef QCA_HOST_MODE_WIFI_DISABLED
|
#ifndef QCA_HOST_MODE_WIFI_DISABLED
|
||||||
|
Reference in New Issue
Block a user