From: Felix Fietkau <nbd@openwrt.org>
To: Helmut Schaa <helmut.schaa@googlemail.com>
Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com,
johannes@sipsolutions.net
Subject: Re: [PATCH] mac80211: retry sending failed BAR frames later instead of tearing down aggr
Date: Mon, 29 Aug 2011 09:05:49 +0200 [thread overview]
Message-ID: <4E5B3A4D.2040306@openwrt.org> (raw)
In-Reply-To: <CAGXE3d_=BtQ+TEHG+y+ReftHB5Y9XhojsLyo9qkKSm4EpOGB8g@mail.gmail.com>
On 2011-08-29 8:58 AM, Helmut Schaa wrote:
> On Sun, Aug 28, 2011 at 9:11 PM, Felix Fietkau<nbd@openwrt.org> wrote:
>> Unfortunately failed BAR tx attempts happen more frequently than I
>> expected, and the resulting aggregation teardowns cause performance
>> issues, as the aggregation session does not always get re-established
>> properly.
>> Instead of tearing down the entire aggr session, we can simply store the
>> SSN of the last failed BAR tx attempt, wait for the first successful
>> tx status event, and then send another BAR with the same SSN.
>>
>> Signed-off-by: Felix Fietkau<nbd@openwrt.org>
>> Cc: Helmut Schaa<helmut.schaa@googlemail.com>
>
> [...]
>
>> static void ieee80211_frame_acked(struct sta_info *sta, struct sk_buff *skb)
>> {
>> struct ieee80211_mgmt *mgmt = (void *) skb->data;
>> struct ieee80211_local *local = sta->local;
>> struct ieee80211_sub_if_data *sdata = sta->sdata;
>>
>> + if (ieee80211_is_data_qos(mgmt->frame_control)) {
>> + struct ieee80211_hdr *hdr = (void *) skb->data;
>> + u8 *qc = ieee80211_get_qos_ctl(hdr);
>> + u16 tid = qc[0]& 0xf;
>> +
>> + ieee80211_check_pending_bar(sta, hdr->addr1, tid);
>> + }
>> +
>
> This code will not be run for injected QoS frames. Is this intended?
> Otherwise looks good to me.
I didn't consider it, but I think it's fine. I don't expect any
aggregated injected traffic under normal circumstances anyway.
- Felix
next prev parent reply other threads:[~2011-08-29 7:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-28 19:11 [PATCH] mac80211: retry sending failed BAR frames later instead of tearing down aggr Felix Fietkau
2011-08-29 6:58 ` Helmut Schaa
2011-08-29 7:05 ` Felix Fietkau [this message]
2011-08-31 12:15 ` Johannes Berg
2011-08-31 12:31 ` Helmut Schaa
2011-08-31 14:47 ` Felix Fietkau
2011-08-31 14:47 ` Felix Fietkau
2011-08-31 17:11 ` Johannes Berg
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=4E5B3A4D.2040306@openwrt.org \
--to=nbd@openwrt.org \
--cc=helmut.schaa@googlemail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/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).