qcacmn: SOC config for HW vdev stats in BE architecture

Add configuration at SOC level for hw vdev stats in BE architecture.

Following config parameters are added:
    vdev_stats_hw_offload: option to enable/disable hw vdev stats
    hw_vdev_stats_timer: timer duration for hw vdev stats

Change-Id: I8cbd2b6a7378d8a9e7de920a3a6fdff0cf7785fe
CRs-Fixed: 3067843
This commit is contained in:
Harsh Kumar Bijlani
2021-05-14 15:07:44 +05:30
committed by Madan Koyyalamudi
parent 6057057ee1
commit f76548dd04
5 changed files with 109 additions and 1 deletions

View File

@@ -1201,6 +1201,28 @@
CFG_INI_BOOL("delay_mon_replenish", \
true, "Delay Monitor Replenish")
#ifdef QCA_VDEV_STATS_HW_OFFLOAD_SUPPORT
#define WLAN_CFG_INT_VDEV_STATS_HW_OFFLOAD_TIMER_MIN 500
#define WLAN_CFG_INT_VDEV_STATS_HW_OFFLOAD_TIMER_MAX 2000
#define WLAN_CFG_INT_VDEV_STATS_HW_OFFLOAD_TIMER 500
#define CFG_DP_VDEV_STATS_HW_OFFLOAD_CONFIG \
CFG_INI_BOOL("vdev_stats_hw_offload_config", \
false, "Offload vdev stats to HW")
#define CFG_DP_VDEV_STATS_HW_OFFLOAD_TIMER \
CFG_INI_UINT("vdev_stats_hw_offload_timer", \
WLAN_CFG_INT_VDEV_STATS_HW_OFFLOAD_TIMER_MIN, \
WLAN_CFG_INT_VDEV_STATS_HW_OFFLOAD_TIMER_MAX, \
WLAN_CFG_INT_VDEV_STATS_HW_OFFLOAD_TIMER, \
CFG_VALUE_OR_DEFAULT, \
"vdev stats hw offload timer duration")
#define CFG_DP_VDEV_STATS_HW_OFFLOAD \
CFG(CFG_DP_VDEV_STATS_HW_OFFLOAD_CONFIG) \
CFG(CFG_DP_VDEV_STATS_HW_OFFLOAD_TIMER)
#else
#define CFG_DP_VDEV_STATS_HW_OFFLOAD
#endif
/*
* <ini>
* ghw_cc_enable - enable HW cookie conversion by register
@@ -1540,5 +1562,6 @@
CFG_DP_IPA_TX_RING_CFG \
CFG_DP_PPE_CONFIG \
CFG_DP_IPA_TX_ALT_RING_CFG \
CFG_DP_MLO_CONFIG
CFG_DP_MLO_CONFIG \
CFG_DP_VDEV_STATS_HW_OFFLOAD
#endif /* _CFG_DP_H_ */