diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-05 19:03:06 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-06 06:31:12 +0300 |
commit | 6c09fa09d468d730eecd7122122175da772d3b09 (patch) | |
tree | 65209a0ed3e197683661a5c1ee7d60be634a9c2f /net/netrom | |
parent | e9647d1e74a9778539ad3232e58833210c1935f5 (diff) | |
download | linux-6c09fa09d468d730eecd7122122175da772d3b09.tar.xz |
tcp: align tcp_xmit_size_goal() on tcp_tso_autosize()
With some mss values, it is possible tcp_xmit_size_goal() puts
one segment more in TSO packet than tcp_tso_autosize().
We send then one TSO packet followed by one single MSS.
It is not a serious bug, but we can do slightly better, especially
for drivers using netif_set_gso_max_size() to lower gso_max_size.
Using same formula avoids these corner cases and makes
tcp_xmit_size_goal() a bit faster.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: 605ad7f184b6 ("tcp: refine TSO autosizing")
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netrom')
0 files changed, 0 insertions, 0 deletions