From: Johannes Berg <johannes@sipsolutions.net>
To: "Guy, Wey-Yi" <wey-yi.w.guy@intel.com>
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 17:38:57 +0100 [thread overview]
Message-ID: <1294850337.3639.28.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1294849399.3591.34.camel@wwguy-huron>
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.
johannes
next prev parent reply other threads:[~2011-01-12 16:38 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 [this message]
2011-01-12 16:46 ` Guy, Wey-Yi
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=1294850337.3639.28.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=wey-yi.w.guy@intel.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 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.