]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: handle EOR and FIN conditions the same in tcp_tso_should_defer()
authorEric Dumazet <edumazet@google.com>
Mon, 10 Dec 2018 14:10:02 +0000 (06:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Dec 2018 20:09:15 +0000 (12:09 -0800)
commit382ec222be93e5fc90c12b42f964be3963fba0b4
treec708a76e9db18d073e67b05d8d9882d029111de7
parent6acedcfc1d51a8e2f425e31e660a0d35c24836b0
tcp: handle EOR and FIN conditions the same in tcp_tso_should_defer()

In commit 8125f34896de ("tcp: lack of available data can also cause
TSO defer") we moved the test in tcp_tso_should_defer() for packets
with a FIN flag, and we mentioned that the same would be done
later for EOR flag.

Both flags should be handled at the same time, after all other
heuristics have been considered. They both mean that no more bytes
can be added to this skb by an application.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c