From owner-svn-src-user@FreeBSD.ORG Fri Jul 22 06:47:09 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E3351065676; Fri, 22 Jul 2011 06:47:09 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5E3808FC0C; Fri, 22 Jul 2011 06:47:09 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p6M6l9to003453; Fri, 22 Jul 2011 06:47:09 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p6M6l9rL003451; Fri, 22 Jul 2011 06:47:09 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201107220647.p6M6l9rL003451@svn.freebsd.org> From: Adrian Chadd Date: Fri, 22 Jul 2011 06:47:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r224265 - user/adrian/if_ath_tx/sys/dev/ath X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2011 06:47:09 -0000 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 */