qcacmn: cdp support enable/disable dp debug logging

Added cdp support to get/set
dp debug logging in per packet path.
Enable debug logs only if dp debug logging
is enabled.
With this change there is benefit of all CPU
average around 1% to 1.5%

Change-Id: Ibe0ca4c75211cace4c5fca9ec0bce1c594ca8a6b
CRs-Fixed: 3623910
This commit is contained in:
Sushant Butta
2023-09-25 11:29:34 +05:30
committed by Rahul Choudhary
parent d6ee46a496
commit 41e5a457c0
4 changed files with 49 additions and 34 deletions

View File

@@ -9048,6 +9048,9 @@ dp_set_psoc_param(struct cdp_soc_t *cdp_soc,
wlan_cfg_set_ast_indication_disable
(wlan_cfg_ctx, val.cdp_ast_indication_disable);
break;
case CDP_CONFIG_DP_DEBUG_LOG:
soc->dp_debug_log_en = val.cdp_psoc_param_dp_debug_log;
break;
default:
break;
}
@@ -9160,6 +9163,9 @@ static QDF_STATUS dp_get_psoc_param(struct cdp_soc_t *cdp_soc,
val->cdp_psoc_param_jitter_stats =
wlan_cfg_is_peer_jitter_stats_enabled(soc->wlan_cfg_ctx);
break;
case CDP_CONFIG_DP_DEBUG_LOG:
val->cdp_psoc_param_dp_debug_log = soc->dp_debug_log_en;
break;
default:
dp_warn("Invalid param: %u", param);
break;