From owner-freebsd-mobile@FreeBSD.ORG Wed Jul 21 16:06:00 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94FC016A4CE; Wed, 21 Jul 2004 16:06:00 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 690A543D45; Wed, 21 Jul 2004 16:06:00 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.91] ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id i6LG5vWi005471 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 21 Jul 2004 09:05:57 -0700 (PDT) (envelope-from sam@errno.com) From: Sam Leffler Organization: Errno Consulting To: freebsd-mobile@freebsd.org Date: Wed, 21 Jul 2004 09:06:57 -0700 User-Agent: KMail/1.6.1 References: <40FE0DF3.4030008@anobject.com> <40FE1576.10206@elischer.org> In-Reply-To: <40FE1576.10206@elischer.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200407210906.57595.sam@errno.com> cc: Jake Hamby cc: Julian Elischer cc: freebsd-current@freebsd.org Subject: Re: Using -current on a Fujitsu Lifebook N5010 (no Atheros 802.11, no Ethernet, + hard freezes) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2004 16:06:00 -0000 On Wednesday 21 July 2004 12:04 am, Julian Elischer wrote: > Jake Hamby wrote: > > * Now uses four transmission queues of varying priority instead of > > one: WME_AC_BE (highest), WME_AC_BK, WME_AC_VI, and WME_AC_VO > > (lowest). There is code in the Linux version to support QOS and > > insert outgoing packets into queue by priority, but I couldn't find > > the equivalent of the priority field from Linux's sk_buff struct in > > FreeBSD's equivalent ieee80211_frame struct. Currently all outgoing > > packets go to WME_AC_BE, except packets of type > > IEEE80211_FC0_TYPE_MGT, which go to WME_AC_VO. > > FreeBSD would store that information in what is called an mbuf tag. > A separate small chunk of ram tagged onto teh first mbuf of the packet. > This is relatively new and there is only just starting to be some > use of it.. Official QOS support in the kernel does not exist yet. > (though there are some sporadic users of priority tags here and there > it is not general yet.) I backported the madwifi code and handled this with a hack. The net80211 layer parses the IP TOS bits to map to WME AC's. Since there are only 4 AC's to map to and the info is passed directly to the drivers under the net80211 layer I encoded them in the mbuf M_PROTO bits instead of using an m_tag. I've already sent Jake a copy of my (unfinished) work in the hopes he'll see it through to commit-ready form. Sam