aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2015-03-05 16:03:06 +0000
committerDavid S. Miller <[email protected]>2015-03-06 03:31:12 +0000
commit6c09fa09d468d730eecd7122122175da772d3b09 (patch)
tree65209a0ed3e197683661a5c1ee7d60be634a9c2f /drivers/net/xen-netback/interface.c
parentnet: fec: fix unbalanced clk disable on driver unbind (diff)
downloadkernel-6c09fa09d468d730eecd7122122175da772d3b09.tar.gz
kernel-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 <[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 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions