netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [TCP]: min_t/max_t confusion in tcp_select_initial_window()?
@ 2009-12-23  2:00 Roel Kluin
  2009-12-23  3:47 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Roel Kluin @ 2009-12-23  2:00 UTC (permalink / raw)
  To: David S. Miller, netdev

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);
------------------------^^^^^

shouldn't the min_t and max_t be exchanged? i.e.

                space = min_t(u32, sysctl_tcp_rmem[2], sysctl_rmem_max);
                space = max_t(u32, space, *window_clamp);

Thanks, Roel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-08-18 14:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-12-23 21:23       ` Ilpo Järvinen
2010-08-18 14:09         ` Hagen Paul Pfeifer

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