Dump out information about the RX descriptor free list and FIFO information.

This commit is contained in:
adrian 2013-03-18 01:12:36 +00:00
parent c17bed3d1c
commit 5061d6f712

View File

@ -397,6 +397,22 @@ ath_sysctl_txagg(SYSCTL_HANDLER_ARGS)
printf("Total mgmt TX buffers: %d; Total mgmt TX buffers busy: %d\n",
t, i);
ATH_RX_LOCK(sc);
for (i = 0; i < 2; i++) {
printf("%d: fifolen: %d; head=%d; tail=%d\n",
i,
sc->sc_rxedma[i].m_fifolen,
sc->sc_rxedma[i].m_fifo_head,
sc->sc_rxedma[i].m_fifo_tail);
}
i = 0;
TAILQ_FOREACH(bf, &sc->sc_rxbuf, bf_list) {
i++;
}
printf("Total RX buffers in free list: %d buffers\n",
i);
ATH_RX_UNLOCK(sc);
return 0;
}