diff options
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index aff31427f525..18c64c74f6d5 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -247,6 +247,7 @@ | |||
247 | * TCP_CLOSE socket is finished | 247 | * TCP_CLOSE socket is finished |
248 | */ | 248 | */ |
249 | 249 | ||
250 | #include <linux/kernel.h> | ||
250 | #include <linux/module.h> | 251 | #include <linux/module.h> |
251 | #include <linux/types.h> | 252 | #include <linux/types.h> |
252 | #include <linux/fcntl.h> | 253 | #include <linux/fcntl.h> |
@@ -2210,7 +2211,7 @@ struct sk_buff *tcp_tso_segment(struct sk_buff *skb, int features) | |||
2210 | goto out; | 2211 | goto out; |
2211 | 2212 | ||
2212 | mss = skb_shinfo(skb)->gso_size; | 2213 | mss = skb_shinfo(skb)->gso_size; |
2213 | skb_shinfo(skb)->gso_segs = (skb->len + mss - 1) / mss; | 2214 | skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); |
2214 | 2215 | ||
2215 | segs = NULL; | 2216 | segs = NULL; |
2216 | goto out; | 2217 | goto out; |