From: David Miller <davem@davemloft.net>
To: ilpo.jarvinen@helsinki.fi
Cc: roel.kluin@gmail.com, netdev@vger.kernel.org
Subject: Re: [TCP]: min_t/max_t confusion in tcp_select_initial_window()?
Date: Wed, 23 Dec 2009 13:15:26 -0800 (PST) [thread overview]
Message-ID: <20091223.131526.193724825.davem@davemloft.net> (raw)
In-Reply-To: <alpine.DEB.2.00.0912232140500.10866@melkinpaasi.cs.helsinki.fi>
From: "Ilpo Järvinen" <ilpo.jarvinen@helsinki.fi>
Date: Wed, 23 Dec 2009 21:45:57 +0200 (EET)
> On Tue, 22 Dec 2009, David Miller wrote:
>
>> From: Roel Kluin <roel.kluin@gmail.com>
>> Date: Wed, 23 Dec 2009 03:00:24 +0100
>>
>> > I could be confused, but in net/ipv4/tcp_output.c:217:
>> >
>> > space = max_t(u32, sysctl_tcp_rmem[2], sysctl_rmem_max);
>> > space = min_t(u32, space, *window_clamp);
>> > ------------------------^^^^^
...
>
> I don't understand how window_clamp line could be changed to max_t.
> ...I guess min in both would seem the most reasonable one?
Nope, the first one must be max. Since I'm pretty sure we let the
dynamic RX buffer resizing exceed sysctl_rmem_max if necessary.
And that's what is controlled by sysctl_tcp_rmem[2]
next prev parent reply other threads:[~2009-12-23 21:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-23 2:00 [TCP]: min_t/max_t confusion in tcp_select_initial_window()? Roel Kluin
2009-12-23 3:47 ` David Miller
2009-12-23 19:45 ` Ilpo Järvinen
2009-12-23 21:15 ` David Miller [this message]
2009-12-23 21:23 ` Ilpo Järvinen
2010-08-18 14:09 ` Hagen Paul Pfeifer
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=20091223.131526.193724825.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=ilpo.jarvinen@helsinki.fi \
--cc=netdev@vger.kernel.org \
--cc=roel.kluin@gmail.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 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).