Search Linux Wireless

Re: [RFC/RFT v2]: compat-wireless for 2.6.32.4 - multiqueue backport support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux