From: Ivo van Doorn <ivdoorn@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: multiqueue
Date: Sun, 4 May 2008 01:15:24 +0200 [thread overview]
Message-ID: <200805040115.24553.IvDoorn@gmail.com> (raw)
In-Reply-To: <1209854340.3673.23.camel@johannes.berg>
On Sunday 04 May 2008, Johannes Berg wrote:
> Hi Ivo,
>
> > Below is a warning I get with your latest QOS patch series,
> > rt61pci registers 4 queues, but apparently the WARN_ON()
> > in ieee80211_wake_queue is being triggered.
> >
> > void ieee80211_wake_queue(struct ieee80211_hw *hw, int queue)
> > {
> > struct ieee80211_local *local = hw_to_local(hw);
> >
> > if (netif_is_multiqueue(local->mdev)) {
> > netif_wake_subqueue(local->mdev, queue);
> > } else {
> > WARN_ON(queue != 0);
> > netif_wake_queue(local->mdev);
> > }
> > }
> >
> > CONFIG_MAC80211_QOS is enabled in the kernel configuration,
> > and debugfs shows that rt2x00 is serving frames over multiple
> > TX queues, so the multiqueue is working...
>
> Strange. Can you verify that the master device has the
> NETIF_F_MULTI_QUEUE flag set? Since that config symbol got enabled you
> must have multiqueue code compiled in. Or maybe I put the setting of the
> MULTI_QUEUE flag into a wrong patch by accident? Check
> net/mac80211/main.c please
My config options are:
CONFIG_NET_SCHED=y
CONFIG_NETDEVICES_MULTIQUEUE=y
CONFIG_CFG80211=m
CONFIG_NL80211=y
CONFIG_WIRELESS_EXT=y
CONFIG_MAC80211=m
CONFIG_MAC80211_QOS=y
snip from net/mac80211/main.c:
#ifdef CONFIG_MAC80211_QOS
if (hw->queues > IEEE80211_MAX_QUEUES)
hw->queues = IEEE80211_MAX_QUEUES;
if (hw->ampdu_queues > IEEE80211_MAX_AMPDU_QUEUES)
hw->ampdu_queues = IEEE80211_MAX_AMPDU_QUEUES;
if (hw->queues < 4)
hw->ampdu_queues = 0;
#else
hw->queues = 1;
hw->ampdu_queues = 0;
#endif
/* for now, mdev needs sub_if_data :/ */
mdev = alloc_netdev_mq(sizeof(struct ieee80211_sub_if_data),
"wmaster%d", ether_setup,
hw->queues + hw->ampdu_queues);
if (!mdev)
goto fail_mdev_alloc;
if (hw->queues > 1)
mdev->flags |= NETIF_F_MULTI_QUEUE;
So theoretically this flag should be set.
However /sys/class/net/wmaster1/features contains the value 0x0
Ivo
next prev parent reply other threads:[~2008-05-03 23:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-03 22:35 multiqueue Ivo van Doorn
2008-05-03 22:39 ` multiqueue Johannes Berg
2008-05-03 23:15 ` Ivo van Doorn [this message]
2008-05-03 23:17 ` multiqueue Johannes Berg
2008-05-04 9:47 ` multiqueue Ivo van Doorn
-- strict thread matches above, loose matches on Subject: below --
2024-05-23 16:02 multiqueue Eric Van Hensbergen
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=200805040115.24553.IvDoorn@gmail.com \
--to=ivdoorn@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.