| commit | 4658b24b2dd0e4c6215db2203743fa999765e8a0 | [log] [tgz] |
|---|---|---|
| author | Ben Hutchings <bhutchings@solarflare.com> | Mon Jul 30 16:11:42 2012 +0000 |
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Oct 02 10:29:34 2012 -0700 |
| tree | 9a88804f646780a2424a5ac87586151e923b1b64 | |
| parent | 0a1f711681e0d7068b69c0697c4ba284fbf1b2bf [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>