ath9k: add RXLP and RXHP to debugfs counters
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
994089db03
commit
a9616f417e
|
@ -179,8 +179,15 @@ void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status)
|
||||||
{
|
{
|
||||||
if (status)
|
if (status)
|
||||||
sc->debug.stats.istats.total++;
|
sc->debug.stats.istats.total++;
|
||||||
if (status & ATH9K_INT_RX)
|
if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_EDMA) {
|
||||||
sc->debug.stats.istats.rxok++;
|
if (status & ATH9K_INT_RXLP)
|
||||||
|
sc->debug.stats.istats.rxlp++;
|
||||||
|
if (status & ATH9K_INT_RXHP)
|
||||||
|
sc->debug.stats.istats.rxhp++;
|
||||||
|
} else {
|
||||||
|
if (status & ATH9K_INT_RX)
|
||||||
|
sc->debug.stats.istats.rxok++;
|
||||||
|
}
|
||||||
if (status & ATH9K_INT_RXEOL)
|
if (status & ATH9K_INT_RXEOL)
|
||||||
sc->debug.stats.istats.rxeol++;
|
sc->debug.stats.istats.rxeol++;
|
||||||
if (status & ATH9K_INT_RXORN)
|
if (status & ATH9K_INT_RXORN)
|
||||||
|
@ -222,8 +229,15 @@ static ssize_t read_file_interrupt(struct file *file, char __user *user_buf,
|
||||||
char buf[512];
|
char buf[512];
|
||||||
unsigned int len = 0;
|
unsigned int len = 0;
|
||||||
|
|
||||||
len += snprintf(buf + len, sizeof(buf) - len,
|
if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_EDMA) {
|
||||||
"%8s: %10u\n", "RX", sc->debug.stats.istats.rxok);
|
len += snprintf(buf + len, sizeof(buf) - len,
|
||||||
|
"%8s: %10u\n", "RXLP", sc->debug.stats.istats.rxlp);
|
||||||
|
len += snprintf(buf + len, sizeof(buf) - len,
|
||||||
|
"%8s: %10u\n", "RXHP", sc->debug.stats.istats.rxhp);
|
||||||
|
} else {
|
||||||
|
len += snprintf(buf + len, sizeof(buf) - len,
|
||||||
|
"%8s: %10u\n", "RX", sc->debug.stats.istats.rxok);
|
||||||
|
}
|
||||||
len += snprintf(buf + len, sizeof(buf) - len,
|
len += snprintf(buf + len, sizeof(buf) - len,
|
||||||
"%8s: %10u\n", "RXEOL", sc->debug.stats.istats.rxeol);
|
"%8s: %10u\n", "RXEOL", sc->debug.stats.istats.rxeol);
|
||||||
len += snprintf(buf + len, sizeof(buf) - len,
|
len += snprintf(buf + len, sizeof(buf) - len,
|
||||||
|
|
|
@ -35,6 +35,8 @@ struct ath_buf;
|
||||||
* struct ath_interrupt_stats - Contains statistics about interrupts
|
* struct ath_interrupt_stats - Contains statistics about interrupts
|
||||||
* @total: Total no. of interrupts generated so far
|
* @total: Total no. of interrupts generated so far
|
||||||
* @rxok: RX with no errors
|
* @rxok: RX with no errors
|
||||||
|
* @rxlp: RX with low priority RX
|
||||||
|
* @rxhp: RX with high priority, uapsd only
|
||||||
* @rxeol: RX with no more RXDESC available
|
* @rxeol: RX with no more RXDESC available
|
||||||
* @rxorn: RX FIFO overrun
|
* @rxorn: RX FIFO overrun
|
||||||
* @txok: TX completed at the requested rate
|
* @txok: TX completed at the requested rate
|
||||||
|
@ -55,6 +57,8 @@ struct ath_buf;
|
||||||
struct ath_interrupt_stats {
|
struct ath_interrupt_stats {
|
||||||
u32 total;
|
u32 total;
|
||||||
u32 rxok;
|
u32 rxok;
|
||||||
|
u32 rxlp;
|
||||||
|
u32 rxhp;
|
||||||
u32 rxeol;
|
u32 rxeol;
|
||||||
u32 rxorn;
|
u32 rxorn;
|
||||||
u32 txok;
|
u32 txok;
|
||||||
|
|
Loading…
Reference in New Issue