]> err.no Git - linux-2.6/blobdiff - net/ipv4/tcp.c
[MAC80211]: remove turbo modes
[linux-2.6] / net / ipv4 / tcp.c
index aff31427f525fb982ea0f86e24597e43d3a440aa..18c64c74f6d50520f5928355a38e54d6272269d4 100644 (file)
  *     TCP_CLOSE               socket is finished
  */
 
+#include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/fcntl.h>
@@ -2210,7 +2211,7 @@ struct sk_buff *tcp_tso_segment(struct sk_buff *skb, int features)
                        goto out;
 
                mss = skb_shinfo(skb)->gso_size;
-               skb_shinfo(skb)->gso_segs = (skb->len + mss - 1) / mss;
+               skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss);
 
                segs = NULL;
                goto out;