aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_state.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-06-28 14:06:41 -0400
committerDavid S. Miller <davem@davemloft.net>2009-06-29 22:41:43 -0400
commit6828b92bd21acd65113dfe0541f19f5df0d9668f (patch)
treebe9b1009500891d7598a2c19a63fad9c0a28f17c /net/xfrm/xfrm_state.c
parent8e5b9dda99cc86bdbd822935fcc37c5808e271b3 (diff)
tcp: Do not tack on TSO data to non-TSO packet
If a socket starts out on a non-TSO route, and then switches to a TSO route, then we will tack on data to the tail of the tx queue even if it started out life as non-TSO. This is suboptimal because all of it will then be copied and checksummed unnecessarily. This patch fixes this by ensuring that skb->ip_summed is set to CHECKSUM_PARTIAL before appending extra data beyond the MSS. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_state.c')
0 files changed, 0 insertions, 0 deletions