svn commit: r225603 - user/adrian/if_ath_tx/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Fri Sep 16 04:26:41 UTC 2011
Author: adrian
Date: Fri Sep 16 04:26:40 2011
New Revision: 225603
URL: http://svn.freebsd.org/changeset/base/225603
Log:
No need to gate the CABQ if the queue is empty.
Obtained from: Atheros
Modified:
user/adrian/if_ath_tx/sys/dev/ath/if_ath.c
Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Fri Sep 16 04:09:53 2011 (r225602)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Fri Sep 16 04:26:40 2011 (r225603)
@@ -2764,7 +2764,8 @@ ath_beacon_generate(struct ath_softc *sc
sc->sc_stats.ast_cabq_xmit += nmcastq;
}
/* NB: gated by beacon so safe to start here */
- ath_hal_txstart(ah, cabq->axq_qnum);
+ if (! TAILQ_EMPTY(&(cabq->axq_q)))
+ ath_hal_txstart(ah, cabq->axq_qnum);
ATH_TXQ_UNLOCK(&avp->av_mcastq);
ATH_TXQ_UNLOCK(cabq);
}
More information about the svn-src-user
mailing list