ath11k: Add dp tx err stats
authorSriram R <srirrama@codeaurora.org>
Thu, 11 Jun 2020 05:09:54 +0000 (08:09 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 15 Jun 2020 14:33:10 +0000 (17:33 +0300)
commit0dd6392ac2c0eb3e229631744f54b61789139e33
tree885f6a4ac4f5371e95b2c5d9ec24765be54de1de
parent8cacd0389c4f6056250377f44fbfe18a2501dd79
ath11k: Add dp tx err stats

Add support for dp tx error stats which logs tx failure reasons due
to ring full condition, etc. This stats is added in soc_dp_stats
which was earlier used as soc_rx_stats so that all dp related info
are logged in same file.

Below is an example usage,

root@OpenWrt:/# cat /sys/kernel/debug/ath11k/ipq8074/soc_dp_stats
SOC RX STATS:

err ring pkts: 0
Invalid RBM: 0
<snip>

SOC TX STATS:

Ring Full Failures:
ring0: 4
ring1: 3
ring2: 5

Misc Transmit Failures: 2

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01213-QCAHKSWPL_SILICONZ-1

Signed-off-by: Sriram R <srirrama@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1591768308-32005-2-git-send-email-srirrama@codeaurora.org
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/debug.c
drivers/net/wireless/ath/ath11k/dp_tx.c