]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tcp: Apply device TSO segment limit earlier
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 30 Jul 2012 16:11:42 +0000 (16:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 16:47:04 +0000 (09:47 -0700)
commit09c403dc7c8e73a4f9c553e4d84aef68af25ff65
tree0a6bfbdde7aa192140a8b7398e58d3f9f9a7b953
parent8a15a4b44f4f3348db373f70103b25a1175ea25b
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>
include/net/sock.h
net/core/sock.c
net/ipv4/tcp.c
net/ipv4/tcp_cong.c
net/ipv4/tcp_output.c