netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH RFC] mac80211: Make stop_queues() usable
       [not found]       ` <200707031439.40828.mb-fseUSCV1ubazQB+pC5nmwQ@public.gmane.org>
@ 2007-07-03 12:56         ` Patrick McHardy
  0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2007-07-03 12:56 UTC (permalink / raw)
  To: Michael Buesch
  Cc: Michael Wu, Jiri Benc, John Linville,
	linux-wireless-u79uwXL29TY76Z2rM5mHXA, Linux Netdev List

Michael Buesch wrote:
> On Tuesday 03 July 2007 14:31:31 Patrick McHardy wrote:
> 
>>The wireless multiqueue handling should be replaced by the generic
>>implementation in net-2.6.23 (using prio, seperating out the wme
>>classifier and killing the broken scheduler). You don't need to
>>stop individual subqueues for a full shutdown with that implementation,
>>you can just stop the global queue. Not sure if that really helps for
>>this case though since I didn't look to deep into this code.
> 
> 
> That's exactly what I want. Stop the "global queue".
> As there is no "global queue" in mac80211, I need to stop every queue.


I could help you take care of the scheduler part if someone
else takes care of the drivers and mac80211.

Roughly what they need to do is:

- use alloc_netdev_mq instead of alloc_netdev
- use netif_{start,stop,wake}_subqueue instead of the wireless
  equivalents
- when all subqueues are stopped the global queue should be stopped
  in the usual way (netif_stop_queue), when at least one is active
  the global queue should be woken
- use skb->queue_mapping instead of skb->priority to get the HW
  queue

The scheduler part mainly consists of offering a clean way to install
a different default qdisc than pfifo_fast and adding a default
classifier. I'm presuming the wme classifier would also be useful
for other (non-mac80211) wireless drivers that offer multiple queues,
so it should probably be completely seperated from mac80211 and moved
to net/sched.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-03 12:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200707022235.38791.mb@bu3sch.de>
     [not found] ` <200707031039.56710.mb@bu3sch.de>
     [not found]   ` <468A41A3.1020903@trash.net>
     [not found]     ` <200707031439.40828.mb@bu3sch.de>
     [not found]       ` <200707031439.40828.mb-fseUSCV1ubazQB+pC5nmwQ@public.gmane.org>
2007-07-03 12:56         ` [PATCH RFC] mac80211: Make stop_queues() usable Patrick McHardy

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).