Date: Fri, 22 Jul 2011 06:47:09 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r224265 - user/adrian/if_ath_tx/sys/dev/ath Message-ID: <201107220647.p6M6l9rL003451@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107220647.p6M6l9rL003451>