qcacmn: Add support to update vdev stats through CDP
Add CDP support to update vdev stats from the higher layers. The CDP API takes a buffer which is then used to update parts the cdp_vdev_stats structure depending on the stats ID that is sent through the API. This change adds support for vdev tx ingress stats only. Extended support can be added as required by adding a new stats ID. Change-Id: I13d6fb946c8a3dbb0b499b7b026d83b080411d15 CRs-Fixed: 2384177
This commit is contained in:
@@ -76,6 +76,18 @@ enum verbose_debug_module {
|
||||
#define dp_info_rl(params...) QDF_TRACE_INFO_RL(QDF_MODULE_ID_DP, params)
|
||||
#define dp_debug_rl(params...) QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_DP, params)
|
||||
|
||||
/**
|
||||
* @enum vdev_host_stats_id:
|
||||
* host stats update from CDP have to set one of the following stats ID
|
||||
*
|
||||
* @DP_VDEV_STATS_PKT_CNT_ONLY: update Tx packet count only
|
||||
* @DP_VDEV_STATS_TX_ME: update Tx ingress stats
|
||||
*/
|
||||
enum {
|
||||
DP_VDEV_STATS_PKT_CNT_ONLY,
|
||||
DP_VDEV_STATS_TX_ME,
|
||||
};
|
||||
|
||||
static inline QDF_STATUS
|
||||
cdp_soc_attach_target(ol_txrx_soc_handle soc)
|
||||
{
|
||||
|
Reference in New Issue
Block a user