linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "lorenzo.bianconi83@gmail.com" <lorenzo.bianconi@fluidmesh.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org,
	Larry Finger <Larry.Finger@lwfinger.net>,
	Bruno Randolf <br1@einfach.org>, Tony Huang <ht6100@gmail.com>
Subject: Re: [PATCH V2] mac80211: Revise,pending queue depth in ieee80211_local data structure
Date: Fri, 19 Mar 2010 10:33:47 +0100	[thread overview]
Message-ID: <4BA344FB.1090500@gmail.com> (raw)
In-Reply-To: <1268936446.4005.13.camel@jlt3.sipsolutions.net>

> Please try this.
> 
> johannes
> 
> ---
>  net/mac80211/tx.c   |    6 ++++++
>  net/mac80211/util.c |    6 ------
>  2 files changed, 6 insertions(+), 6 deletions(-)
> 
> --- wireless-testing.orig/net/mac80211/tx.c	2010-03-18 11:17:43.000000000 -0700
> +++ wireless-testing/net/mac80211/tx.c	2010-03-18 11:19:16.000000000 -0700
> @@ -1991,6 +1991,7 @@ static bool ieee80211_tx_pending_skb(str
>  void ieee80211_tx_pending(unsigned long data)
>  {
>  	struct ieee80211_local *local = (struct ieee80211_local *)data;
> +	struct ieee80211_sub_if_data *sdata;
>  	unsigned long flags;
>  	int i;
>  	bool txok;
> @@ -2029,6 +2030,11 @@ void ieee80211_tx_pending(unsigned long
>  			if (!txok)
>  				break;
>  		}
> +
> +		if (skb_queue_empty(&local->pending[i]))
> +			list_for_each_entry_rcu(sdata, &local->interfaces, list)
> +				netif_tx_wake_queue(
> +					netdev_get_tx_queue(sdata->dev, i));
>  	}
>  	spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
>  
> --- wireless-testing.orig/net/mac80211/util.c	2010-03-18 11:17:08.000000000 -0700
> +++ wireless-testing/net/mac80211/util.c	2010-03-18 11:19:28.000000000 -0700
> @@ -268,7 +268,6 @@ static void __ieee80211_wake_queue(struc
>  				   enum queue_stop_reason reason)
>  {
>  	struct ieee80211_local *local = hw_to_local(hw);
> -	struct ieee80211_sub_if_data *sdata;
>  
>  	if (WARN_ON(queue >= hw->queues))
>  		return;
> @@ -281,11 +280,6 @@ static void __ieee80211_wake_queue(struc
>  
>  	if (!skb_queue_empty(&local->pending[queue]))
>  		tasklet_schedule(&local->tx_pending_tasklet);
> -
> -	rcu_read_lock();
> -	list_for_each_entry_rcu(sdata, &local->interfaces, list)
> -		netif_tx_wake_queue(netdev_get_tx_queue(sdata->dev, queue));
> -	rcu_read_unlock();
>  }
>  
>  void ieee80211_wake_queue_by_reason(struct ieee80211_hw *hw, int queue,
> 
> 

Hi Johannes,

I tested the patch on kernel 2.6.32.7 with compat-wireless-2010-03-03 but
it seems that the problem is not solved. If I set the lowest priority queue
(Backgreound), the system will crash for an out of memory panic. During the
tests I carried out, I transmit 50Mbps UDP traffic.

Regards

Lorenzo

  reply	other threads:[~2010-03-19  9:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-18 15:43 [PATCH V2] mac80211: Revise,pending queue depth in ieee80211_local data structure lorenzo.bianconi83@gmail.com
2010-03-18 16:19 ` Johannes Berg
2010-03-18 18:12 ` Johannes Berg
2010-03-18 18:20 ` Johannes Berg
2010-03-19  9:33   ` lorenzo.bianconi83@gmail.com [this message]
2010-03-19 18:49     ` Johannes Berg
2010-03-20  2:44       ` Bruno Randolf
2010-03-20  3:07         ` Bruno Randolf
2010-03-20 20:02           ` Lorenzo Bianconi
2010-03-20 20:40             ` Johannes Berg
2010-03-21  2:01               ` Bruno Randolf
2010-03-21  2:22                 ` Johannes Berg
2010-03-22 18:12                 ` Johannes Berg
2010-03-31  8:12                   ` Bruno Randolf
2010-03-31  8:13                     ` Johannes Berg
  -- strict thread matches above, loose matches on Subject: below --
2010-03-18 15:32 lorenzo.bianconi83@gmail.com

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=4BA344FB.1090500@gmail.com \
    --to=lorenzo.bianconi@fluidmesh.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=br1@einfach.org \
    --cc=ht6100@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 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).