diff options
author | Eric Dumazet <[email protected]> | 2015-03-05 08:03:06 -0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-03-05 22:31:12 -0500 |
commit | 6c09fa09d468d730eecd7122122175da772d3b09 (patch) | |
tree | 65209a0ed3e197683661a5c1ee7d60be634a9c2f /net/unix/sysctl_net_unix.c | |
parent | e9647d1e74a9778539ad3232e58833210c1935f5 (diff) |
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 <[email protected]>
Fixes: 605ad7f184b6 ("tcp: refine TSO autosizing")
Acked-by: Neal Cardwell <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions