commit | d77ce5e969bc4b2876d702fe27bb0dbef511337a | [log] [tgz] |
---|---|---|
author | Ben Hutchings <bhutchings@solarflare.com> | Mon Jul 30 16:11:42 2012 +0000 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sun Apr 05 10:16:05 2020 +0200 |
tree | 10bf4b9123c0b73e51d88d68bfcb92ed1c534642 | |
parent | 70311b88f4f2422c403f8a19202dcdfca24b4fbe [diff] |
tcp: Apply device TSO segment limit earlier [ Upstream commit 1485348d2424e1131ea42efc033cbd9366462b01 ] Cache the device gso_max_segs in sock::sk_gso_max_segs and use it to limit the size of TSO skbs. This avoids the need to fall back to software GSO for local TCP senders. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>