[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1264152878.11396.82.camel@johannes.local>
Date: Fri, 22 Jan 2010 10:34:38 +0100
From: Johannes Berg <johannes@...solutions.net>
To: "Luis R. Rodriguez" <mcgrof@...badil.infradead.org>
Cc: linux-wireless <linux-wireless@...r.kernel.org>,
netdev@...r.kernel.org, lrodriguez@...eros.com
Subject: Re: [RFC/RFT v2]: compat-wireless for 2.6.32.4 - multiqueue
backport support
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
Download attachment "signature.asc" of type "application/pgp-signature" (802 bytes)
Powered by blists - more mailing lists