All of lore.kernel.org
 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 2/2] mac80211: minstrel_ht: set A-MSDU tx limits based on selected max_prob_rate
Date: Thu, 03 Mar 2016 15:55:49 +0100	[thread overview]
Message-ID: <1457016949.2044.12.camel@sipsolutions.net> (raw)
In-Reply-To: <1456306140-78485-2-git-send-email-nbd@openwrt.org>

On Wed, 2016-02-24 at 10:29 +0100, Felix Fietkau wrote:

> +	/*
> +	 * If the rate is slower than single-stream MCS4, limit A-MSDU to usual
> +	 * data packet size
> +	 */
> +	if (g->duration[rate] > MCS_DURATION(1, 0, 104))
> +		return 1500;
> +
> +	/*
> +	 * If the rate is slower than single-stream MCS7, limit A-MSDU to twice
> +	 * the usual data packet size
> +	 */
> +	if (g->duration[rate] > MCS_DURATION(1, 0, 260))
> +		return 3000;

This isn't *quite* right, since you have to take an 802.11 header (vs.
an ethernet header) into account, I think?

johannes

  reply	other threads:[~2016-03-03 14:55 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 [this message]
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
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=1457016949.2044.12.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.