From: Michael Buesch <mb@bu3sch.de>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org, bcm43xx-dev@lists.berlios.de
Subject: Re: mac80211: changing number of queues in ops->start
Date: Tue, 7 Apr 2009 21:33:21 +0200 [thread overview]
Message-ID: <200904072133.21296.mb@bu3sch.de> (raw)
In-Reply-To: <1239132567.7187.1.camel@johannes.local>
On Tuesday 07 April 2009 21:29:27 Johannes Berg wrote:
> On Tue, 2009-04-07 at 20:24 +0200, Michael Buesch wrote:
> > I'm wondering how to implement QoS capability runtime detection
> > in a mac80211 driver.
> >
> > In b43 we don't know at ieee80211_register time whether the firmware does
> > support QoS or not, because it's not loaded yet. (Reasons for not loading
> > it that early are issues with builtin-b43, etc...).
> > So we don't know whether we are going to load opensource fw (no QoS) or
> > proprietary fw (QoS capable).
> > But it seems that mac80211 requires to set hw->queues before ieee80211_register.
> >
> > So what I'd need is a way to change the number of possible queues from within
> > the ops->start handler.
>
> Well, I suppose you could register with the max and later reduce and
> stop the remaining queues you're not using... Or not stop them and drop
> packets on them. That's somewhat fragile, gives people who look at tc a
> wrong idea, and I can't imagine supporting it, but it should work.
mkay, I'll try this. thanks :)
I wonder, however, will mac80211 try to queue packets on queues that are stopped?
And I think just dropping them is not an option, because this will cause breakage.
What about just queueing everything on a single queue, no matter what queue mac80211
puts the frame into? Would this cause ordering issues?
Or the other way around, is there anything that _depends_ on the higher priority queues
to get sent before the higher priority queues?
--
Greetings, Michael.
next prev parent reply other threads:[~2009-04-07 19:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-07 18:24 mac80211: changing number of queues in ops->start Michael Buesch
2009-04-07 19:29 ` Johannes Berg
2009-04-07 19:33 ` Michael Buesch [this message]
2009-04-07 19:37 ` Johannes Berg
2009-04-07 19:40 ` Michael Buesch
2009-04-07 19:46 ` Johannes Berg
2009-04-07 19:51 ` Michael Buesch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200904072133.21296.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=bcm43xx-dev@lists.berlios.de \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).