From: Johannes Berg <johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
To: "Luis R. Rodriguez"
<mcgrof-PfSpb0PWhxZc2C7mugBRk2EX/6BAtgUQ@public.gmane.org>
Cc: linux-wireless
<linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
lrodriguez-DlyHzToyqoxBDgjK7y7TUQ@public.gmane.org
Subject: Re: [RFC/RFT v2]: compat-wireless for 2.6.32.4 - multiqueue backport support
Date: Fri, 22 Jan 2010 10:34:38 +0100 [thread overview]
Message-ID: <1264152878.11396.82.camel@johannes.local> (raw)
In-Reply-To: <20100121230600.GC8069-PfSpb0PWhxZc2C7mugBRk2EX/6BAtgUQ@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]
On Thu, 2010-01-21 at 18:06 -0500, Luis R. Rodriguez wrote:
> +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23))
> +static bool ieee80211_all_queues_stopped(struct ieee80211_hw *hw)
You want "all queues started" :)
> +{
> + unsigned int queue;
> +
> + for (queue = 0; queue < hw->queues; queue++)
> + if (!ieee80211_queue_stopped(hw, queue))
> + return false;
> + return true;
> +}
> +#endif
> +
> static void __ieee80211_wake_queue(struct ieee80211_hw *hw, int queue,
> enum queue_stop_reason reason)
> {
> @@ -287,7 +299,14 @@ static void __ieee80211_wake_queue(struc
>
> rcu_read_lock();
> list_for_each_entry_rcu(sdata, &local->interfaces, list)
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
> netif_tx_wake_queue(netdev_get_tx_queue(sdata->dev, queue));
> +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
> + netif_start_subqueue(sdata->dev, queue);
> +#else
> + if (ieee80211_all_queues_stopped(hw))
> + netif_wake_queue(sdata->dev);
> +#endif
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2010-01-22 9:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-21 23:06 [RFC/RFT v2]: compat-wireless for 2.6.32.4 - multiqueue backport support Luis R. Rodriguez
[not found] ` <20100121230600.GC8069-PfSpb0PWhxZc2C7mugBRk2EX/6BAtgUQ@public.gmane.org>
2010-01-22 9:34 ` Johannes Berg [this message]
2010-01-23 0:09 ` Luis R. Rodriguez
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=1264152878.11396.82.camel@johannes.local \
--to=johannes-cdvu00un1vgdhxzaddlk8q@public.gmane.org \
--cc=linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lrodriguez-DlyHzToyqoxBDgjK7y7TUQ@public.gmane.org \
--cc=mcgrof-PfSpb0PWhxZc2C7mugBRk2EX/6BAtgUQ@public.gmane.org \
--cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.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