ath9k: Add tx-failed counter.
PATCH 1/3 ath9k: Add tx-failed counter.
From: Ben Greear <[email protected]>
This counts any failure during getting packets into the DMA buffers, including out-of-memory, etc.
Signed-off-by Ben Greear <[email protected]>
---
:100644 100644 35d1c8e... 9078279... M drivers/net/wireless/ath/ath9k/debug.c
:100644 100644 64fcfad... d1c132f... M drivers/net/wireless/ath/ath9k/debug.h
:100644 100644 215eb25... 2e49a43... M drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/debug.c | 1 + drivers/net/wireless/ath/ath9k/debug.h | 2 ++ drivers/net/wireless/ath/ath9k/main.c | 1 + 3 files changed, 4 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/debug.c +1 -0
@@ -529,6 +529,7 @@ static ssize_t read_file_xmit(struct file *file, char __user *user_buf,PR ("hw-put-tx-buf: " , puttxbuf);PR ("hw-tx-start: " , txstart);PR ("hw-tx-proc-desc: " , txprocdesc); +PR ("TX-Failed: " , txfailed); len += snprintf(buf + len, size - len, "%s%11p%11p%10p%10p\n", "txq-memory-address:", sc->tx.txq_map[WME_AC_BE],
drivers/net/wireless/ath/ath9k/debug.h +2 -0
@@ -113,6 +113,7 @@ struct ath_interrupt_stats {* @puttxbuf: Number of times hardware was given txbuf to write. * @txstart: Number of times hardware was told to start tx. * @txprocdesc: Number of times tx descriptor was processed +* @txfailed: Out-of-memory or other errors in xmit path. */ struct ath_tx_stats {u32 tx_pkts_all;
@@ -135,6 +136,7 @@ struct ath_tx_stats {u32 puttxbuf;u32 txstart;u32 txprocdesc; +u32 txfailed; };/**
drivers/net/wireless/ath/ath9k/main.c +1 -0
@@ -1135,6 +1135,7 @@ static void ath9k_tx(struct ieee80211_hw *hw, struct sk_buff *skb)if (ath_tx_start (hw, skb, &txctl) !=0 ) {ath_dbg (common,XMIT ,"TX failed\n" ); +TX_STAT_INC (txctl.txq->axq_qnum, txfailed); goto exit; }
Signature · 1 line
1.7.3.4
PATCH 1/3 ath9k: Add tx-failed counter.
Quoted 4 lines · greearb at candelatech.com
From: Ben Greear<[email protected]>
This counts any failure during getting packets into the DMA buffers, including out-of-memory, etc.
Errr, that should be 1/2. I can re-send if
needed..might be other requests for changes
anyway...
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com