svn commit: r224788 - user/adrian/if_ath_tx/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Thu Aug 11 20:30:23 UTC 2011
Author: adrian
Date: Thu Aug 11 20:30:22 2011
New Revision: 224788
URL: http://svn.freebsd.org/changeset/base/224788
Log:
Add another TXQ method, this time to prepend packets to the TXQ head.
Modified:
user/adrian/if_ath_tx/sys/dev/ath/if_athvar.h
Modified: user/adrian/if_ath_tx/sys/dev/ath/if_athvar.h
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_athvar.h Thu Aug 11 20:29:38 2011 (r224787)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_athvar.h Thu Aug 11 20:30:22 2011 (r224788)
@@ -251,6 +251,10 @@ struct ath_txq {
#define ATH_TXQ_LOCK_ASSERT(_tq) mtx_assert(&(_tq)->axq_lock, MA_OWNED)
#define ATH_TXQ_IS_LOCKED(_tq) mtx_owned(&(_tq)->axq_lock)
+#define ATH_TXQ_INSERT_HEAD(_tq, _elm, _field) do { \
+ STAILQ_INSERT_HEAD(&(_tq)->axq_q, (_elm), _field); \
+ (_tq)->axq_depth++; \
+} while (0)
#define ATH_TXQ_INSERT_TAIL(_tq, _elm, _field) do { \
STAILQ_INSERT_TAIL(&(_tq)->axq_q, (_elm), _field); \
(_tq)->axq_depth++; \
More information about the svn-src-user
mailing list