qcacmn: Define cdp interface APIs to fetch delay and jitter stats

Define a new cdp interface to fetch peer delay stats.
Define a new cdp interface to fetch peer jitter stats.

These interface APIs will be used by upper layers to fetch delay and
jitter stats per peer for telemetry stats feature.

Change-Id: I96ee6a861fa2626e7e1fba3df7df9ec64ff7e946
CRs-Fixed: 3071493
This commit is contained in:
Subrat Mishra
2021-11-03 14:21:07 +05:30
committed by Madan Koyyalamudi
parent 41fda10bc5
commit 813d7d9a43
6 changed files with 200 additions and 16 deletions

View File

@@ -5495,22 +5495,11 @@ static void dp_print_hist_stats(struct cdp_hist_stats *hstats,
DP_PRINT_STATS("Avg = %u\n", hstats->avg);
}
/*
* dp_accumulate_delay_tid_stats(): Accumulate the tid stats to the
* hist stats.
* @soc: DP SoC handle
* @stats: cdp_delay_tid stats
* @dst_hstats: Destination histogram to copy tid stats
* @tid: TID value
*
* Return: void
*/
static void
dp_accumulate_delay_tid_stats(struct dp_soc *soc,
struct cdp_delay_tid_stats stats[]
[CDP_MAX_TXRX_CTX],
struct cdp_hist_stats *dst_hstats,
uint8_t tid, uint32_t mode)
void dp_accumulate_delay_tid_stats(struct dp_soc *soc,
struct cdp_delay_tid_stats stats[]
[CDP_MAX_TXRX_CTX],
struct cdp_hist_stats *dst_hstats,
uint8_t tid, uint32_t mode)
{
uint8_t ring_id;