Commit e04eaa56 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[TCP]: Only re-set TSO size for packet which was TSO to begin with.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9b50506b
...@@ -588,7 +588,8 @@ int tcp_trim_head(struct sock *sk, struct sk_buff *skb, u32 len) ...@@ -588,7 +588,8 @@ int tcp_trim_head(struct sock *sk, struct sk_buff *skb, u32 len)
/* Any change of skb->len requires recalculation of tso /* Any change of skb->len requires recalculation of tso
* factor and mss. * factor and mss.
*/ */
tcp_set_skb_tso_segs(skb, tcp_skb_mss(skb)); if (tcp_skb_mss(skb))
tcp_set_skb_tso_segs(skb, tcp_skb_mss(skb));
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment