qcacmn: Add support to calculate uplink delay

Add support to calculate uplink delay on a per vdev basis.
The delay calculated excludes bus delays, where packet
enqueueing time and complete time are fetched from HW release
ring.

Change-Id: I4bbcbf28b197f7a87cb822a841f1f957ebcf063b
CRs-Fixed: 2958833
This commit is contained in:
Jia Ding
2021-05-12 16:47:44 +08:00
committed by Madan Koyyalamudi
parent 0e0afa5c4c
commit 9304c2d00e
6 changed files with 277 additions and 1 deletions

View File

@@ -813,6 +813,17 @@ struct cdp_ctrl_ops {
int8_t vdev_id);
#endif
#ifdef WLAN_FEATURE_TSF_UPLINK_DELAY
void (*txrx_set_delta_tsf)(struct cdp_soc_t *soc, uint8_t vdev_id,
uint32_t delta_tsf);
QDF_STATUS (*txrx_set_tsf_ul_delay_report)(struct cdp_soc_t *soc,
uint8_t vdev_id,
bool enable);
QDF_STATUS (*txrx_get_uplink_delay)(struct cdp_soc_t *soc,
uint8_t vdev_id,
uint32_t *val);
#endif
};
struct cdp_me_ops {