summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-02-13 05:30:22 +0000
committersam <sam@FreeBSD.org>2009-02-13 05:30:22 +0000
commitca6a964ab32d71d60cf2aaefaf410cdd88a49fca (patch)
treeeb889bb1cf7983721a7704b4f3a00ac61a39c040 /sys
parentc96b4defecc6bf3b3e7db71fd993ab972c43bd17 (diff)
downloadFreeBSD-src-ca6a964ab32d71d60cf2aaefaf410cdd88a49fca.zip
FreeBSD-src-ca6a964ab32d71d60cf2aaefaf410cdd88a49fca.tar.gz
add driver stat to count tx drops due to insufficient frag buffers
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ath/if_ath.c3
-rw-r--r--sys/dev/ath/if_athioctl.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 9f26229..4459bf1 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -2071,7 +2071,6 @@ static void
ath_start(struct ifnet *ifp)
{
struct ath_softc *sc = ifp->if_softc;
- struct ieee80211com *ic = ifp->if_l2com;
struct ieee80211_node *ni;
struct ath_buf *bf;
struct mbuf *m, *next;
@@ -2141,7 +2140,7 @@ ath_start(struct ifnet *ifp)
!ath_txfrag_setup(sc, &frags, m, ni)) {
DPRINTF(sc, ATH_DEBUG_XMIT,
"%s: out of txfrag buffers\n", __func__);
- ic->ic_stats.is_tx_nobuf++; /* XXX */
+ sc->sc_stats.ast_tx_nofrag++;
ath_freetx(m);
goto bad;
}
diff --git a/sys/dev/ath/if_athioctl.h b/sys/dev/ath/if_athioctl.h
index 538c1a2..e9ea17b 100644
--- a/sys/dev/ath/if_athioctl.h
+++ b/sys/dev/ath/if_athioctl.h
@@ -117,7 +117,8 @@ struct ath_stats {
u_int16_t ast_tdma_tsfadjm;/* TDMA slot adjust- (usec, smoothed)*/
u_int32_t ast_tdma_ack; /* TDMA tx failed 'cuz ACK required */
u_int32_t ast_tx_raw_fail;/* raw tx failed 'cuz h/w down */
- u_int32_t ast_pad[15];
+ u_int32_t ast_tx_nofrag; /* tx dropped 'cuz no ath frag buffer */
+ u_int32_t ast_pad[14];
};
#define SIOCGATHSTATS _IOWR('i', 137, struct ifreq)
OpenPOWER on IntegriCloud