ath10k: Add sta rx packet stats per tid
PATCH 1/1 ath10k: Add sta rx packet stats per tid
Added per tid sta counters for the following
- Total number MSDUs received from firmware
- Number of MSDUs received with errors like decryption, crc, mic ,etc.
- Number of MSDUs dropped in the driver
- A-MPDU/A-MSDU subframe stats
- Number of MSDUS passed to mac80211
All stats other than A-MPDU stats are only for received data frames. A-MPDU stats might have stats for management frames when monitor interface is active where management frames are notified both in wmi and HTT interfaces.
These per tid stats can be enabled with tid bitmask through a debugfs like below
echo <tid_bitmask> > /sys/kernel/debug/ieee80211/phyX/ath10k/sta_tid_stats_mask
tid 16 (tid_bitmask 0x10000) is used for non-qos data/management frames
The stats are read from /sys/kernel/debug/ieee80211/phyX/netdev\:wlanX/stations/<sta_mac>/dump_tid_stats
Sample output:
To enable rx stats for tid 0, 5 and 6,
echo 0x00000061 > /sys/kernel/debug/ieee80211/phy0/ath10k/sta_tid_stats_mask
cat /sys/kernel/debug/ieee80211/phy0/netdev\:wlan15/stations/8c\:fd\:f0\:0a\:8e\:df/dump_tid_stats
Driver Rx pkt stats per tid, ([tid] count)
------------------------------------------ MSDUs from FW [00] 2567 [05] 3178 [06] 1089 MSDUs unchained [00] 0 [05] 0 [06] 0 MSDUs locally dropped:chained [00] 0 [05] 0 [06] 0 MSDUs locally dropped:filtered [00] 0 [05] 0 [06] 0 MSDUs queued for mac80211 [00] 2567 [05] 3178 [06] 1089 MSDUs with error:fcs_err [00] 0 [05] 0 [06] 2 MSDUs with error:tkip_err [00] 0 [05] 0 [06] 0 MSDUs with error:crypt_err [00] 0 [05] 0 [06] 0 MSDUs with error:peer_idx_inval [00] 0 [05] 0 [06] 0
A-MPDU num subframes upto 10 [00] 2567 [05] 3178 [06] 1087 A-MPDU num subframes 11-20 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 21-30 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 31-40 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 41-50 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 51-60 [00] 0 [05] 0 [06] 0 A-MPDU num subframes >60 [00] 0 [05] 0 [06] 0
A-MSDU num subframes 1 [00] 2567 [05] 3178 [06] 1089 A-MSDU num subframes 2 [00] 0 [05] 0 [06] 0 A-MSDU num subframes 3 [00] 0 [05] 0 [06] 0 A-MSDU num subframes 4 [00] 0 [05] 0 [06] 0 A-MSDU num subframes >4 [00] 0 [05] 0 [06] 0
--- drivers/net/wireless/ath/ath10k/core.h | 45 ++++ drivers/net/wireless/ath/ath10k/debug.c | 48 +++++ drivers/net/wireless/ath/ath10k/debug.h | 31 +++ drivers/net/wireless/ath/ath10k/debugfs_sta.c | 286 ++++++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/htt_rx.c | 71 ++++++- 5 files changed, 471 insertions(+), 10 deletions(-)
drivers/net/wireless/ath/ath10k/core.h +45 -0
@@ -1,6 +1,7 @@/* * Copyright (c) 2005-2011 Atheros Communications Inc. * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. +* Copyright (c) 2018, The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
@@ -354,6 +355,45 @@ struct ath10k_txq {unsigned long num_push_allowed; }; +enum ath10k_pkt_rx_err { +ATH10K_PKT_RX_ERR_FCS , +ATH10K_PKT_RX_ERR_TKIP , +ATH10K_PKT_RX_ERR_CRYPT , +ATH10K_PKT_RX_ERR_PEER_IDX_INVAL , +ATH10K_PKT_RX_ERR_MAX , +}; + +enum ath10k_ampdu_subfrm_num { +ATH10K_AMPDU_SUBFRM_NUM_10 , +ATH10K_AMPDU_SUBFRM_NUM_20 , +ATH10K_AMPDU_SUBFRM_NUM_30 , +ATH10K_AMPDU_SUBFRM_NUM_40 , +ATH10K_AMPDU_SUBFRM_NUM_50 , +ATH10K_AMPDU_SUBFRM_NUM_60 , +ATH10K_AMPDU_SUBFRM_NUM_MORE , +ATH10K_AMPDU_SUBFRM_NUM_MAX , +}; + +enum ath10k_amsdu_subfrm_num { +ATH10K_AMSDU_SUBFRM_NUM_1 , +ATH10K_AMSDU_SUBFRM_NUM_2 , +ATH10K_AMSDU_SUBFRM_NUM_3 , +ATH10K_AMSDU_SUBFRM_NUM_4 , +ATH10K_AMSDU_SUBFRM_NUM_MORE , +ATH10K_AMSDU_SUBFRM_NUM_MAX , +}; + +struct ath10k_sta_tid_stats { +unsigned long int rx_pkt_from_fw; +unsigned long int rx_pkt_unchained; +unsigned long int rx_pkt_drop_chained; +unsigned long int rx_pkt_drop_filter; +unsigned long int rx_pkt_err[ATH10K_PKT_RX_ERR_MAX ]; +unsigned long int rx_pkt_queued_for_mac; +unsigned long int rx_pkt_ampdu[ATH10K_AMPDU_SUBFRM_NUM_MAX ]; +unsigned long int rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_MAX ]; +}; +struct ath10k_sta {struct ath10k_vif *arvif;
@@ -371,6 +411,9 @@ struct ath10k_sta {#ifdef CONFIG_MAC80211_DEBUGFS /* protected by conf_mutex */ bool aggr_mode; + +/* Protected with ar->data_lock */ +struct ath10k_sta_tid_stats tid_stats[IEEE80211_NUM_TIDS +1 ];#endif };
@@ -1019,6 +1062,8 @@ struct ath10k {void *ce_priv; +u32 sta_tid_stats_mask; +/* must be last */ u8 drv_priv[0 ]__aligned(sizeof(void *)) ; };
drivers/net/wireless/ath/ath10k/debug.c +48 -0
66 lines not on this page · raw message
drivers/net/wireless/ath/ath10k/debug.h +31 -0
@@ -1,6 +1,7 @@/* * Copyright (c) 2005-2011 Atheros Communications Inc. * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. +* Copyright (c) 2018, The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
@@ -191,12 +192,42 @@ void ath10k_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct dentry *dir);void ath10k_sta_update_rx_duration (struct ath10k *ar,struct ath10k_fw_stats *stats); +void ath10k_sta_update_rx_tid_stats (struct ath10k *ar,u8 *first_hdr, +unsigned long int num_msdus, +enum ath10k_pkt_rx_err err, +unsigned long int unchain_cnt, +unsigned long int drop_cnt, +unsigned long int drop_cnt_filter, +unsigned long int queued_msdus); +void ath10k_sta_update_rx_tid_stats_ampdu (struct ath10k *ar, +u16 peer_id,u8 tid, +struct htt_rx_indication_mpdu_range *mpdu_ranges, +int num_mpdu_rages);#else static inline void ath10k_sta_update_rx_duration (struct ath10k *ar,struct ath10k_fw_stats *stats) { } + +static inline +void ath10k_sta_update_rx_tid_stats (struct ath10k *ar,u8 *first_hdr, +unsigned long int num_msdus, +enum ath10k_pkt_rx_err err, +unsigned long int unchain_cnt, +unsigned long int drop_cnt, +unsigned long int drop_cnt_filter, +unsigned long int queued_msdus) +{ +} + +static inline +void ath10k_sta_update_rx_tid_stats_ampdu (struct ath10k *ar, +u16 peer_id,u8 tid, +struct htt_rx_indication_mpdu_range *mpdu_ranges, +int num_mpdu_rages) +{ +}#endif /* CONFIG_MAC80211_DEBUGFS */ #ifdef CONFIG_ATH10K_DEBUG
drivers/net/wireless/ath/ath10k/debugfs_sta.c +286 -0
309 lines not on this page · raw message
drivers/net/wireless/ath/ath10k/htt_rx.c +61 -10
177 lines not on this page · raw message
Signature · 1 line
1.9.1
Quoted 51 lines · Vasanthakumar Thiagarajan
Added per tid sta counters for the following
- Total number MSDUs received from firmware
- Number of MSDUs received with errors like decryption, crc, mic ,etc.
- Number of MSDUs dropped in the driver
- A-MPDU/A-MSDU subframe stats
- Number of MSDUS passed to mac80211All stats other than A-MPDU stats are only for received data frames. A-MPDU stats might have stats for management frames when monitor interface is active where management frames are notified both in wmi and HTT interfaces.
These per tid stats can be enabled with tid bitmask through a debugfs like below
echo <
tid_bitmask> >/sys/kernel/debug/ieee80211/phyX/ath10k/sta_tid_stats_masktid 16 (
tid_bitmask0x10000) is used for non-qos data/management framesThe stats are read from /sys/kernel/debug/ieee80211/phyX/netdev\:wlanX/stations/<sta_mac>/dump_tid_stats
Sample output:
To enable rx stats for tid 0, 5 and 6,
echo
0x00000061>/sys/kernel/debug/ieee80211/phy0/ath10k/sta_tid_stats_maskcat /sys/kernel/debug/ieee80211/phy0/netdev\:wlan15/stations/8c\:fd\:f0\:0a\:8e\:df/dump_tid_stats
Driver Rx pkt stats per tid, ([tid] count)
------------------------------------------ MSDUs from FW [00] 2567 [05] 3178 [06] 1089 MSDUs unchained [00] 0 [05] 0 [06] 0 MSDUs locally dropped:chained [00] 0 [05] 0 [06] 0 MSDUs locally dropped:filtered [00] 0 [05] 0 [06] 0 MSDUs queued for mac80211 [00] 2567 [05] 3178 [06] 1089 MSDUs with error:fcs_err [00] 0 [05] 0 [06] 2 MSDUs with error:tkip_err [00] 0 [05] 0 [06] 0 MSDUs with error:crypt_err [00] 0 [05] 0 [06] 0 MSDUs with error:peer_idx_inval [00] 0 [05] 0 [06] 0A-MPDU num subframes upto 10 [00] 2567 [05] 3178 [06] 1087 A-MPDU num subframes 11-20 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 21-30 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 31-40 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 41-50 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 51-60 [00] 0 [05] 0 [06] 0 A-MPDU num subframes >60 [00] 0 [05] 0 [06] 0
Quoted 7 lines
A-MSDU num subframes 1 [00] 2567 [05] 3178 [06] 1089 A-MSDU num subframes 2 [00] 0 [05] 0 [06] 0 A-MSDU num subframes 3 [00] 0 [05] 0 [06] 0 A-MSDU num subframes 4 [00] 0 [05] 0 [06] 0 A-MSDU num subframes >4 [00] 0 [05] 0 [06] 0Signed-off-by Vasanthakumar Thiagarajan <[email protected]>
This added new ath10k-check warnings, I fixed those in the pending branch:
drivers/net/wireless/ath/ath10k/debug.h:203: Alignment should match open parenthesis drivers/net/wireless/ath/ath10k/debug.h:226: Alignment should match open parenthesis drivers/net/wireless/ath/ath10k/debugfs_sta.c:24: Alignment should match open parenthesis drivers/net/wireless/ath/ath10k/debugfs_sta.c:40: Alignment should match open parenthesis drivers/net/wireless/ath/ath10k/debugfs_sta.c:60: Alignment should match open parenthesis
Also I fixed the typo "rages" in debug.h. My changes:
drivers/net/wireless/ath/ath10k/debug.h +6 -6
@@ -200,9 +200,9 @@ void ath10k_sta_update_rx_tid_stats(struct ath10k *ar, u8 *first_hdr,unsigned long int drop_cnt_filter, unsigned long int queued_msdus);void ath10k_sta_update_rx_tid_stats_ampdu (struct ath10k *ar, -u16 peer_id,u8 tid, -struct htt_rx_indication_mpdu_range *mpdu_ranges, -int num_mpdu_rages); +u16 peer_id,u8 tid, +struct htt_rx_indication_mpdu_range *ranges, +int num_ranges);#else static inline void ath10k_sta_update_rx_duration(struct ath10k *ar,
@@ -223,9 +223,9 @@ void ath10k_sta_update_rx_tid_stats(struct ath10k *ar, u8 *first_hdr,static inline void ath10k_sta_update_rx_tid_stats_ampdu (struct ath10k *ar, -u16 peer_id,u8 tid, -struct htt_rx_indication_mpdu_range *mpdu_ranges, -int num_mpdu_rages) +u16 peer_id,u8 tid, +struct htt_rx_indication_mpdu_range *ranges, +int num_ranges) { }#endif /* CONFIG_MAC80211_DEBUGFS */
drivers/net/wireless/ath/ath10k/debugfs_sta.c +8 -8
@@ -21,8 +21,8 @@#include "debug.h" static void ath10k_rx_stats_update_amsdu_subfrm (struct ath10k *ar, -struct ath10k_sta_tid_stats *stats, -u32 msdu_count) +struct ath10k_sta_tid_stats *stats, +u32 msdu_count) {if (msdu_count ==1 ) stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_1 ]++;
@@ -37,8 +37,8 @@ static void ath10k_rx_stats_update_amsdu_subfrm(struct ath10k *ar, }static void ath10k_rx_stats_update_ampdu_subfrm (struct ath10k *ar, -struct ath10k_sta_tid_stats *stats, -u32 mpdu_count) +struct ath10k_sta_tid_stats *stats, +u32 mpdu_count) {if (mpdu_count <=10 ) stats->rx_pkt_ampdu[ATH10K_AMPDU_SUBFRM_NUM_10 ]++;
@@ -57,8 +57,8 @@ static void ath10k_rx_stats_update_ampdu_subfrm(struct ath10k *ar, }void ath10k_sta_update_rx_tid_stats_ampdu (struct ath10k *ar,u16 peer_id,u8 tid, -struct htt_rx_indication_mpdu_range *mpdu_ranges, -int num_mpdu_ranges) +struct htt_rx_indication_mpdu_range *ranges, +int num_ranges) {struct ath10k_sta *arsta;struct ath10k_peer *peer;
@@ -76,10 +76,10 @@ void ath10k_sta_update_rx_tid_stats_ampdu(struct ath10k *ar, u16 peer_id, u8 tid arsta = (struct ath10k_sta *)peer->sta->drv_priv; -for (i =0 ; i < num_mpdu_ranges; i++) +for (i =0 ; i < num_ranges; i++)ath10k_rx_stats_update_ampdu_subfrm (ar, &arsta->tid_stats[tid], - mpdu_ranges[i].mpdu_count); + ranges[i].mpdu_count); out:spin_unlock_bh (&ar->data_lock);
Quoted 64 lines · Kalle Valo
Quoted 51 lines · Vasanthakumar Thiagarajan
Added per tid sta counters for the following
- Total number MSDUs received from firmware
- Number of MSDUs received with errors like decryption, crc, mic ,etc.
- Number of MSDUs dropped in the driver
- A-MPDU/A-MSDU subframe stats
- Number of MSDUS passed to mac80211All stats other than A-MPDU stats are only for received data frames. A-MPDU stats might have stats for management frames when monitor interface is active where management frames are notified both in wmi and HTT interfaces.
These per tid stats can be enabled with tid bitmask through a debugfs like below
echo <
tid_bitmask> >/sys/kernel/debug/ieee80211/phyX/ath10k/sta_tid_stats_masktid 16 (
tid_bitmask0x10000) is used for non-qos data/management framesThe stats are read from /sys/kernel/debug/ieee80211/phyX/netdev\:wlanX/stations/<sta_mac>/dump_tid_stats
Sample output:
To enable rx stats for tid 0, 5 and 6,
echo
0x00000061>/sys/kernel/debug/ieee80211/phy0/ath10k/sta_tid_stats_maskcat /sys/kernel/debug/ieee80211/phy0/netdev\:wlan15/stations/8c\:fd\:f0\:0a\:8e\:df/dump_tid_stats
Driver Rx pkt stats per tid, ([tid] count)
------------------------------------------ MSDUs from FW [00] 2567 [05] 3178 [06] 1089 MSDUs unchained [00] 0 [05] 0 [06] 0 MSDUs locally dropped:chained [00] 0 [05] 0 [06] 0 MSDUs locally dropped:filtered [00] 0 [05] 0 [06] 0 MSDUs queued for mac80211 [00] 2567 [05] 3178 [06] 1089 MSDUs with error:fcs_err [00] 0 [05] 0 [06] 2 MSDUs with error:tkip_err [00] 0 [05] 0 [06] 0 MSDUs with error:crypt_err [00] 0 [05] 0 [06] 0 MSDUs with error:peer_idx_inval [00] 0 [05] 0 [06] 0A-MPDU num subframes upto 10 [00] 2567 [05] 3178 [06] 1087 A-MPDU num subframes 11-20 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 21-30 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 31-40 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 41-50 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 51-60 [00] 0 [05] 0 [06] 0 A-MPDU num subframes >60 [00] 0 [05] 0 [06] 0Quoted 7 lines
A-MSDU num subframes 1 [00] 2567 [05] 3178 [06] 1089 A-MSDU num subframes 2 [00] 0 [05] 0 [06] 0 A-MSDU num subframes 3 [00] 0 [05] 0 [06] 0 A-MSDU num subframes 4 [00] 0 [05] 0 [06] 0 A-MSDU num subframes >4 [00] 0 [05] 0 [06] 0Signed-off-by Vasanthakumar Thiagarajan <[email protected]>This added new ath10k-check warnings, I fixed those in the pending branch:
Quoted 7 lines
drivers/net/wireless/ath/ath10k/debug.h:203: Alignment should match open parenthesisdrivers/net/wireless/ath/ath10k/debug.h:226: Alignment should match open parenthesisdrivers/net/wireless/ath/ath10k/debugfs_sta.c:24: Alignment should match open parenthesisdrivers/net/wireless/ath/ath10k/debugfs_sta.c:40: Alignment should match open parenthesisdrivers/net/wireless/ath/ath10k/debugfs_sta.c:60: Alignment should match open parenthesisAlso I fixed the typo "rages" in
debug.h. My changes:
Thanks for fixing it. In most of the cases, fixing above warnings would result in lines > 80 chars. May be we need not be very strict about > 80 char limit?
Vasanth
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 12 lines · Vasanthakumar Thiagarajan
Quoted 12 lines
This added new ath10k-check warnings, I fixed those in the pending branch:
drivers/net/wireless/ath/ath10k/debug.h:203: Alignment should match open parenthesisdrivers/net/wireless/ath/ath10k/debug.h:226: Alignment should match open parenthesisdrivers/net/wireless/ath/ath10k/debugfs_sta.c:24: Alignment should match open parenthesisdrivers/net/wireless/ath/ath10k/debugfs_sta.c:40: Alignment should match open parenthesisdrivers/net/wireless/ath/ath10k/debugfs_sta.c:60: Alignment should match open parenthesis
Quoted 5 lines
Quoted 1 line
Also I fixed the typo "rages" in
debug.h. My changes:Thanks for fixing it. In most of the cases, fixing above warnings would result in lines > 80 chars.
May be we need not be very strict about > 80 char limit?
In ath10k-check I set the limit to 90 chars, but I guess it could be even higher than that. But on the other it shouldn't be too long, not everyone like to have one huge window for editor :)
Signature · 1 line
Kalle Valo
Quoted 51 lines · Vasanthakumar Thiagarajan
Added per tid sta counters for the following
- Total number MSDUs received from firmware
- Number of MSDUs received with errors like decryption, crc, mic ,etc.
- Number of MSDUs dropped in the driver
- A-MPDU/A-MSDU subframe stats
- Number of MSDUS passed to mac80211All stats other than A-MPDU stats are only for received data frames. A-MPDU stats might have stats for management frames when monitor interface is active where management frames are notified both in wmi and HTT interfaces.
These per tid stats can be enabled with tid bitmask through a debugfs like below
echo <
tid_bitmask> >/sys/kernel/debug/ieee80211/phyX/ath10k/sta_tid_stats_masktid 16 (
tid_bitmask0x10000) is used for non-qos data/management framesThe stats are read from /sys/kernel/debug/ieee80211/phyX/netdev\:wlanX/stations/<sta_mac>/dump_tid_stats
Sample output:
To enable rx stats for tid 0, 5 and 6,
echo
0x00000061>/sys/kernel/debug/ieee80211/phy0/ath10k/sta_tid_stats_maskcat /sys/kernel/debug/ieee80211/phy0/netdev\:wlan15/stations/8c\:fd\:f0\:0a\:8e\:df/dump_tid_stats
Driver Rx pkt stats per tid, ([tid] count)
------------------------------------------ MSDUs from FW [00] 2567 [05] 3178 [06] 1089 MSDUs unchained [00] 0 [05] 0 [06] 0 MSDUs locally dropped:chained [00] 0 [05] 0 [06] 0 MSDUs locally dropped:filtered [00] 0 [05] 0 [06] 0 MSDUs queued for mac80211 [00] 2567 [05] 3178 [06] 1089 MSDUs with error:fcs_err [00] 0 [05] 0 [06] 2 MSDUs with error:tkip_err [00] 0 [05] 0 [06] 0 MSDUs with error:crypt_err [00] 0 [05] 0 [06] 0 MSDUs with error:peer_idx_inval [00] 0 [05] 0 [06] 0A-MPDU num subframes upto 10 [00] 2567 [05] 3178 [06] 1087 A-MPDU num subframes 11-20 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 21-30 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 31-40 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 41-50 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 51-60 [00] 0 [05] 0 [06] 0 A-MPDU num subframes >60 [00] 0 [05] 0 [06] 0
Quoted 8 lines
A-MSDU num subframes 1 [00] 2567 [05] 3178 [06] 1089 A-MSDU num subframes 2 [00] 0 [05] 0 [06] 0 A-MSDU num subframes 3 [00] 0 [05] 0 [06] 0 A-MSDU num subframes 4 [00] 0 [05] 0 [06] 0 A-MSDU num subframes >4 [00] 0 [05] 0 [06] 0Signed-off-by Vasanthakumar Thiagarajan <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
caee728ab761 ath10k: add sta rx packet stats per tid
Signature · 3 lines
https://patchwork.kernel.org/patch/10193935/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 51 lines · Vasanthakumar Thiagarajan
Added per tid sta counters for the following
- Total number MSDUs received from firmware
- Number of MSDUs received with errors like decryption, crc, mic ,etc.
- Number of MSDUs dropped in the driver
- A-MPDU/A-MSDU subframe stats
- Number of MSDUS passed to mac80211All stats other than A-MPDU stats are only for received data frames. A-MPDU stats might have stats for management frames when monitor interface is active where management frames are notified both in wmi and HTT interfaces.
These per tid stats can be enabled with tid bitmask through a debugfs like below
echo <
tid_bitmask> >/sys/kernel/debug/ieee80211/phyX/ath10k/sta_tid_stats_masktid 16 (
tid_bitmask0x10000) is used for non-qos data/management framesThe stats are read from /sys/kernel/debug/ieee80211/phyX/netdev\:wlanX/stations/<sta_mac>/dump_tid_stats
Sample output:
To enable rx stats for tid 0, 5 and 6,
echo
0x00000061>/sys/kernel/debug/ieee80211/phy0/ath10k/sta_tid_stats_maskcat /sys/kernel/debug/ieee80211/phy0/netdev\:wlan15/stations/8c\:fd\:f0\:0a\:8e\:df/dump_tid_stats
Driver Rx pkt stats per tid, ([tid] count)
------------------------------------------ MSDUs from FW [00] 2567 [05] 3178 [06] 1089 MSDUs unchained [00] 0 [05] 0 [06] 0 MSDUs locally dropped:chained [00] 0 [05] 0 [06] 0 MSDUs locally dropped:filtered [00] 0 [05] 0 [06] 0 MSDUs queued for mac80211 [00] 2567 [05] 3178 [06] 1089 MSDUs with error:fcs_err [00] 0 [05] 0 [06] 2 MSDUs with error:tkip_err [00] 0 [05] 0 [06] 0 MSDUs with error:crypt_err [00] 0 [05] 0 [06] 0 MSDUs with error:peer_idx_inval [00] 0 [05] 0 [06] 0A-MPDU num subframes upto 10 [00] 2567 [05] 3178 [06] 1087 A-MPDU num subframes 11-20 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 21-30 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 31-40 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 41-50 [00] 0 [05] 0 [06] 0 A-MPDU num subframes 51-60 [00] 0 [05] 0 [06] 0 A-MPDU num subframes >60 [00] 0 [05] 0 [06] 0
Quoted 8 lines
A-MSDU num subframes 1 [00] 2567 [05] 3178 [06] 1089 A-MSDU num subframes 2 [00] 0 [05] 0 [06] 0 A-MSDU num subframes 3 [00] 0 [05] 0 [06] 0 A-MSDU num subframes 4 [00] 0 [05] 0 [06] 0 A-MSDU num subframes >4 [00] 0 [05] 0 [06] 0Signed-off-by Vasanthakumar Thiagarajan <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
caee728ab761 ath10k: add sta rx packet stats per tid
Signature · 9 lines
https://patchwork.kernel.org/patch/10193935/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k