qcacmn: Update deterministic stats for tx
Parse sequence type and msduq htt tlv and update mode count and avg rate based on txmode. CRs-Fixed: 3380939 Change-Id: I5fe2068cbe8b312738eeaa4c4a48000e1a66255c
This commit is contained in:

committed by
Madan Koyyalamudi

parent
f1664a7c8a
commit
a3a4b8e44b
@@ -2041,6 +2041,7 @@ struct cdp_delayed_tx_completion_ppdu_user {
|
||||
* @punc_mode: puncutured mode to indicate punctured bw
|
||||
* @punc_pattern_bitmap: bitmap indicating punctured pattern
|
||||
* @mprot_type: medium protection type
|
||||
* @msduq_bitmap: msduq bitmap
|
||||
* @rts_success: rts success
|
||||
* @rts_failure: rts failure
|
||||
*/
|
||||
@@ -2147,6 +2148,7 @@ struct cdp_tx_completion_ppdu_user {
|
||||
uint32_t mpdu_bytes;
|
||||
uint8_t punc_mode;
|
||||
uint16_t punc_pattern_bitmap;
|
||||
uint32_t msduq_bitmap;
|
||||
uint8_t mprot_type:3,
|
||||
rts_success:1,
|
||||
rts_failure:1;
|
||||
@@ -2313,6 +2315,9 @@ struct cdp_tx_mgmt_comp_info {
|
||||
* @sched_cmdid: schedule command id
|
||||
* @phy_ppdu_tx_time_us: Phy per PPDU TX duration
|
||||
* @ppdu_bytes: accumulated bytes per ppdu for mem limit feature
|
||||
* @htt_seq_type: Seq type
|
||||
* @txmode_type: tx mode type UL/DL
|
||||
* @txmode: tx mode
|
||||
* @user: per-User stats (array of per-user structures)
|
||||
*/
|
||||
struct cdp_tx_completion_ppdu {
|
||||
@@ -2358,6 +2363,9 @@ struct cdp_tx_completion_ppdu {
|
||||
uint16_t sched_cmdid;
|
||||
uint16_t phy_ppdu_tx_time_us;
|
||||
uint32_t ppdu_bytes;
|
||||
uint8_t htt_seq_type;
|
||||
uint8_t txmode_type;
|
||||
uint8_t txmode;
|
||||
struct cdp_tx_completion_ppdu_user user[];
|
||||
};
|
||||
|
||||
|
@@ -326,6 +326,65 @@ enum cdp_tx_transmit_type {
|
||||
MU_MIMO_OFDMA,
|
||||
};
|
||||
|
||||
/*
|
||||
* cdp_tx_mode_type: Uplink transmit mode type
|
||||
* TX_MODE_TYPE_DL: DL TX mode
|
||||
* TX_MODE_TYPE_UL: UL TX mode
|
||||
* TX_MODE_TYPE_UNKNOWN: UL TX mode unknown
|
||||
*/
|
||||
enum cdp_tx_mode_type {
|
||||
TX_MODE_TYPE_DL = 0,
|
||||
TX_MODE_TYPE_UL,
|
||||
TX_MODE_TYPE_UNKNOWN,
|
||||
};
|
||||
|
||||
/*
|
||||
* cdp_tx_mode_dl: Downlink transmit mode index
|
||||
* TX_MODE_DL_SU_DATA: SU Transmit type index
|
||||
* TX_MODE_DL_OFDMA_DATA: OFDMA Transmit type index
|
||||
* TX_MODE_DL_MUMIMO_DATA: MIMO Transmit type index
|
||||
*/
|
||||
enum cdp_tx_mode_dl {
|
||||
TX_MODE_DL_SU_DATA = 0,
|
||||
TX_MODE_DL_OFDMA_DATA,
|
||||
TX_MODE_DL_MUMIMO_DATA,
|
||||
TX_MODE_DL_MAX,
|
||||
};
|
||||
|
||||
/*
|
||||
* cdp_tx_mode_ul: Uplink transmit mode index
|
||||
* TX_MODE_UL_OFDMA_BASIC_TRIGGER_DATA: UL ofdma trigger index
|
||||
* TX_MODE_UL_MUMIMO_BASIC_TRIGGER_DATA: UL mimo trigger index
|
||||
* TX_MODE_UL_OFDMA_MU_BAR_TRIGGER: UL ofdma MU-BAR trigger index
|
||||
*/
|
||||
enum cdp_tx_mode_ul {
|
||||
TX_MODE_UL_OFDMA_BASIC_TRIGGER_DATA = 0,
|
||||
TX_MODE_UL_MUMIMO_BASIC_TRIGGER_DATA,
|
||||
TX_MODE_UL_OFDMA_MU_BAR_TRIGGER,
|
||||
TX_MODE_UL_MAX,
|
||||
};
|
||||
|
||||
/*
|
||||
* cdp_msduq_index: TX msdu queue
|
||||
* MSDUQ_INDEX_DEFAULT: TCP/UDP msduq index
|
||||
* MSDUQ_INDEX_CUSTOM_PRIO_0: custom priority msduq index
|
||||
* MSDUQ_INDEX_CUSTOM_PRIO_1: custom priority msduq index
|
||||
* MSDUQ_INDEX_CUSTOM_EXT_PRIO_0: custom ext priority msduq index
|
||||
* MSDUQ_INDEX_CUSTOM_EXT_PRIO_1: custom ext priority msduq index
|
||||
* MSDUQ_INDEX_CUSTOM_EXT_PRIO_2: custom ext priority msduq index
|
||||
* MSDUQ_INDEX_CUSTOM_EXT_PRIO_3: custom ext priority msduq index
|
||||
*/
|
||||
enum cdp_msduq_index {
|
||||
MSDUQ_INDEX_DEFAULT = 0,
|
||||
MSDUQ_INDEX_CUSTOM_PRIO_0,
|
||||
MSDUQ_INDEX_CUSTOM_PRIO_1,
|
||||
MSDUQ_INDEX_CUSTOM_EXT_PRIO_0,
|
||||
MSDUQ_INDEX_CUSTOM_EXT_PRIO_1,
|
||||
MSDUQ_INDEX_CUSTOM_EXT_PRIO_2,
|
||||
MSDUQ_INDEX_CUSTOM_EXT_PRIO_3,
|
||||
MSDUQ_INDEX_MAX,
|
||||
};
|
||||
|
||||
/*
|
||||
* cdp_ru_index: Different RU index
|
||||
*
|
||||
@@ -2854,6 +2913,30 @@ struct cdp_peer_telemetry_stats {
|
||||
uint16_t rx_airtime_consumption[WME_AC_MAX];
|
||||
uint8_t snr;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct cdp_peer_tx_dl_deter- Structure to hold peer DL deterministic stats
|
||||
* @avg_rate: Average TX rate
|
||||
* @mode_cnt: TX mode count
|
||||
*/
|
||||
struct cdp_peer_tx_dl_deter {
|
||||
uint64_t avg_rate;
|
||||
uint32_t mode_cnt;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct cdp_peer_tx_ul_deter- Structure to hold peer UL deterministic stats
|
||||
* @avg_rate: Average TX rate
|
||||
* @mode_cnt: TX mode count
|
||||
* @trigger_success: Trigger frame received success
|
||||
* @trigger_fail: Trigger frame received fail
|
||||
*/
|
||||
struct cdp_peer_tx_ul_deter {
|
||||
uint64_t avg_rate;
|
||||
uint32_t mode_cnt;
|
||||
uint32_t trigger_success;
|
||||
uint32_t trigger_fail;
|
||||
};
|
||||
#endif
|
||||
|
||||
/* struct cdp_pdev_stats - pdev stats
|
||||
|
Reference in New Issue
Block a user