linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Ben Greear <greearb@candelatech.com>
Cc: Felix Fietkau <nbd@openwrt.org>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211:  Limit number of pending skbs.
Date: Wed, 30 May 2012 18:09:13 +0200	[thread overview]
Message-ID: <1338394153.4511.27.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <4FC644F8.8020606@candelatech.com>

On Wed, 2012-05-30 at 09:04 -0700, Ben Greear wrote:

> > There used to be bugs in this area in mac80211 and/or pktgen, and I
> > remember crashing my machine very trivially. I don't think that this is
> > still a problem though, but I haven't tried in a long time. FWIW, the
> > time-frame of this must've been ~2-3 years ago.
> 
> I think it's still broken..I've been carrying this patch for a year or two:
> 
>  From 5ad8e96ace28d798214ba6e203d143e6380e0605 Mon Sep 17 00:00:00 2001
> From: Ben Greear <greearb@candelatech.com>
> Date: Tue, 14 Jun 2011 11:01:50 -0700
> Subject: [PATCH 016/102] mac80211: Set up tx-queue-mapping in subif_start_xmit.
> 
> Otherwise, ath9k gets confused about which queue to use
> and spews a warning like this when driving traffic with
> pktgen.


> diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
> index e05667c..1f026b5 100644
> --- a/net/mac80211/tx.c
> +++ b/net/mac80211/tx.c
> @@ -2072,6 +2072,8 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
>   	} else
>   		memcpy(skb_push(skb, hdrlen), &hdr, hdrlen);
> 
> +	skb_set_queue_mapping(skb, ieee80211_select_queue(sdata, skb));

Looks like pktgen then doesn't care about the select_queue() call which
should be called before start_xmit

johannes


  reply	other threads:[~2012-05-30 16:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-29 23:02 [PATCH] mac80211: Limit number of pending skbs greearb
2012-05-29 23:23 ` Felix Fietkau
2012-05-29 23:29   ` Ben Greear
2012-05-30  7:03     ` Johannes Berg
2012-05-30 16:04       ` Ben Greear
2012-05-30 16:09         ` Johannes Berg [this message]
2012-05-30 16:14           ` Ben Greear

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=1338394153.4511.27.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=greearb@candelatech.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=nbd@openwrt.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).