linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Guy, Wey-Yi" <wey-yi.w.guy@intel.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [RFC 2/2] iwlwifi: use maximum aggregation size
Date: Wed, 12 Jan 2011 08:46:46 -0800	[thread overview]
Message-ID: <1294850806.20725.18.camel@wwguy-ubuntu> (raw)
In-Reply-To: <1294850337.3639.28.camel@jlt3.sipsolutions.net>

Hi Johannes,

On Wed, 2011-01-12 at 08:38 -0800, Johannes Berg wrote:
> On Wed, 2011-01-12 at 08:23 -0800, Guy, Wey-Yi wrote:
> 
> > > +	lq_cmd->agg_params.agg_frame_cnt_limit =
> > > +		sta_priv->max_agg_bufsize ?: LINK_QUAL_AGG_FRAME_LIMIT_DEF;
> > 
> > at this point, sta_priv->lq_sta.lq.agg_params.agg_frame_cnt_limit has
> > the right value, why not use it?
> 
> I wasn't sure it would _always_ have the right value, and if the ucode
> would accept 0 before needed -- the ?: construct will use it if
> non-zero, and use the default otherwise.
> 
> > on the other hand, sta_priv->max_agg_bufsize ==
> > sta_priv->lq_sta.lq.agg_params.agg_frame_cnt_limit
> > 
> > why need both?
> 
> Yeah I guess that would work if we put the init somewhere else, and
> didn't change it above in that function -- we need the minimum
> calculation to work. This seemed easier to verify to me :-)
> 
> > > +		/*
> > > +		 * Even though in theory the peer could have different
> > > +		 * aggregation reorder buffer sizes for different sessions,
> > > +		 * our ucode doesn't allow for that and has a global limit
> > > +		 * for each station. Therefore, use the minimum of all the
> > > +		 * aggregation sessions and our default value.
> > > +		 */
> > > +		sta_priv->max_agg_bufsize =
> > > +			min(sta_priv->max_agg_bufsize, buf_size);
> > > +
> > not sure where the "bus_size" come from?
> 
> It's a new argument to the function -- see patch 1/2.
> 
I don't think I have patch 1/2

Here is what I have
[RFC2/2]iwlwifi: use maximum aggregation size
[RFC2/2]iwlwifi: advertise max aggregate size

Wey



      reply	other threads:[~2011-01-12 16:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-12 12:13 [RFC 0/2] fix aggregation buffer size limits Johannes Berg
2011-01-12 12:13 ` [RFC 1/2] mac80211: track receivers aggregation reorder buffer size Johannes Berg
2011-01-12 13:01   ` Sujith
2011-01-12 16:51   ` Guy, Wey-Yi
2011-01-12 12:13 ` [RFC 2/2] iwlwifi: use maximum aggregation size Johannes Berg
2011-01-12 16:23   ` Guy, Wey-Yi
2011-01-12 16:38     ` Johannes Berg
2011-01-12 16:46       ` Guy, Wey-Yi [this message]

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=1294850806.20725.18.camel@wwguy-ubuntu \
    --to=wey-yi.w.guy@intel.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).