mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
add driver stat to count tx drops due to insufficient frag buffers
This commit is contained in:
parent
6e05dab14d
commit
36c6be9ab4
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue