]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Prevent overzealous packetization by SWS logic.
authorAlexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Wed, 15 Sep 2010 17:27:52 +0000 (10:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Sep 2010 19:01:44 +0000 (12:01 -0700)
commit0a03db07a42b418e1e393a30a84c0a11ae6d781e
treeb01eba7a8b9cf737312c3721ff8ef361baa55bea
parent6177cd8a72068faff0464e1c07fd3181c0c1a2e3
tcp: Prevent overzealous packetization by SWS logic.

If peer uses tiny MSS (say, 75 bytes) and similarly tiny advertised
window, the SWS logic will packetize to half the MSS unnecessarily.

This causes problems with some embedded devices.

However for large MSS devices we do want to half-MSS packetize
otherwise we never get enough packets into the pipe for things
like fast retransmit and recovery to work.

Be careful also to handle the case where MSS > window, otherwise
we'll never send until the probe timer.

Reported-by: ツ Leandro Melo de Sales <leandroal@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h