From: Felix Fietkau <nbd@openwrt.org>
To: Johannes Berg <johannes@sipsolutions.net>,
linux-wireless@vger.kernel.org
Cc: egrumbach@gmail.com
Subject: Re: [PATCH v2 1/2] mac80211: add A-MSDU tx support
Date: Thu, 3 Mar 2016 16:11:36 +0100 [thread overview]
Message-ID: <56D85428.6090705@openwrt.org> (raw)
In-Reply-To: <1457016860.2044.11.camel@sipsolutions.net>
On 2016-03-03 15:54, Johannes Berg wrote:
> On Wed, 2016-02-24 at 10:28 +0100, Felix Fietkau wrote:
>>
>> + /*
>> + * HT A-MPDU limits maximum MPDU size to 4095 bytes. Since aggregation
>> + * sessions are started/stopped without txq flush, use the limit here
>> + * to avoid having to de-aggregate later.
>> + */
>> + if (skb->len + head->len > 4095 &&
>> + !sta->sta.vht_cap.vht_supported)
>> + goto out;
>
> I'm not entirely happy with this. You're silently assuming that when
> VHT is supported, HT MCSes will never be used.
>
> This is (I think) true for minstrel_ht, but at the very least you
> should also document it along with the max_rc_amsdu_len then, which btw
> I was going to reword to:
>
> + * @IEEE80211_HW_TX_AMSDU: Hardware (or driver) supports software aggregated
> + * A-MSDU frames. Requires software tx queueing and fast-xmit support.
> + * When not using minstrel/minstrel_ht rate control, the driver needs to
> + * limit the maximum A-MSDU size based on the current tx rate by setting
> + * max_rc_amsdu_len in struct ieee80211_sta to avoid mac80211 building
> + * A-MSDUs that require too much airtime (are too long for a TXOP.)
>
>
> All that said, I'm not sure how much value there really is in
> aggregating that much? I'd think the value of A-MSDU really is more for
> lots of small frames like TCP ACKs, since the PER goes up exponentially
> with the BER for A-MSDU (unlike A-MPDU.)
For my own uses, I'd be perfectly fine with limiting A-MSDU size to HT
limits even when using VHT - in fact I did that in an early RFC patch. I
mainly relaxed the limit for VHT based on Emmanuel's feedback.
I also have doubts about the value of A-MSDU size beyond 4095 bytes.
Just let me know which way you'd like it, and I'll send v3 accordingly.
- Felix
next prev parent reply other threads:[~2016-03-03 15:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-24 9:28 [PATCH v2 1/2] mac80211: add A-MSDU tx support Felix Fietkau
2016-02-24 9:29 ` [PATCH v2 2/2] mac80211: minstrel_ht: set A-MSDU tx limits based on selected max_prob_rate Felix Fietkau
2016-03-03 14:55 ` Johannes Berg
2016-03-03 15:03 ` Felix Fietkau
2016-03-03 15:07 ` Johannes Berg
2016-03-03 15:12 ` Felix Fietkau
2016-03-03 14:54 ` [PATCH v2 1/2] mac80211: add A-MSDU tx support Johannes Berg
2016-03-03 15:11 ` Felix Fietkau [this message]
2016-03-03 15:37 ` Johannes Berg
2016-03-03 15:55 ` Felix Fietkau
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=56D85428.6090705@openwrt.org \
--to=nbd@openwrt.org \
--cc=egrumbach@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).