svn commit: r224265 - user/adrian/if_ath_tx/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Fri Jul 22 06:47:09 UTC 2011
Author: adrian
Date: Fri Jul 22 06:47:09 2011
New Revision: 224265
URL: http://svn.freebsd.org/changeset/base/224265
Log:
Add baw_head / baw_tail ; comment how the whole ring setup is going
to be used.
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 Fri Jul 22 06:07:20 2011 (r224264)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_athvar.h Fri Jul 22 06:47:09 2011 (r224265)
@@ -95,7 +95,19 @@ struct ath_tid {
u_int axq_depth; /* SW queue depth */
struct mtx axq_lock; /* lock on queue, tx_buf */
char axq_name[24]; /* e.g. "wlan0_a1_t5" */
+
+ /*
+ * The following implements a ring representing
+ * the frames in the current BAW.
+ * To avoid copying the array content each time
+ * the BAW is moved, the baw_head/baw_tail point
+ * to the current BAW begin/end; when the BAW is
+ * shifted the head/tail of the array are also
+ * appropriately shifted.
+ */
struct ath_buf *tx_buf[ATH_TID_MAX_BUFS]; /* active tx buffers, beginning at current BAW */
+ int baw_head; /* where the baw head is in the array */
+ int baw_tail; /* where the BAW tail is in the array */
};
/* driver-specific node state */
More information about the svn-src-user
mailing list