diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-05 17:03:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-06 04:31:12 +0100 |
commit | 6c09fa09d468d730eecd7122122175da772d3b09 (patch) | |
tree | 65209a0ed3e197683661a5c1ee7d60be634a9c2f /drivers | |
parent | net: fec: fix unbalanced clk disable on driver unbind (diff) | |
download | linux-6c09fa09d468d730eecd7122122175da772d3b09.tar.xz linux-6c09fa09d468d730eecd7122122175da772d3b09.zip |
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 'drivers')
0 files changed, 0 insertions, 0 deletions