linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Felix Fietkau <nbd@openwrt.org>, linux-wireless@vger.kernel.org
Cc: egrumbach@gmail.com
Subject: Re: [PATCH v2 1/2] mac80211: add A-MSDU tx support
Date: Thu, 03 Mar 2016 15:54:20 +0100	[thread overview]
Message-ID: <1457016860.2044.11.camel@sipsolutions.net> (raw)
In-Reply-To: <1456306140-78485-1-git-send-email-nbd@openwrt.org>

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.)

johannes

  parent reply	other threads:[~2016-03-03 14:54 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 ` Johannes Berg [this message]
2016-03-03 15:11   ` [PATCH v2 1/2] mac80211: add A-MSDU tx support Felix Fietkau
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=1457016860.2044.11.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=egrumbach@gmail.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).