diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index a61a3e3082ae..d65d17bb2a09 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -646,11 +646,7 @@ static void tcp_set_skb_tso_segs(struct sock *sk, struct sk_buff *skb, unsigned | |||
646 | skb_shinfo(skb)->gso_size = 0; | 646 | skb_shinfo(skb)->gso_size = 0; |
647 | skb_shinfo(skb)->gso_type = 0; | 647 | skb_shinfo(skb)->gso_type = 0; |
648 | } else { | 648 | } else { |
649 | unsigned int factor; | 649 | skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss_now); |
650 | |||
651 | factor = skb->len + (mss_now - 1); | ||
652 | factor /= mss_now; | ||
653 | skb_shinfo(skb)->gso_segs = factor; | ||
654 | skb_shinfo(skb)->gso_size = mss_now; | 650 | skb_shinfo(skb)->gso_size = mss_now; |
655 | skb_shinfo(skb)->gso_type = sk->sk_gso_type; | 651 | skb_shinfo(skb)->gso_type = sk->sk_gso_type; |
656 | } | 652 | } |