summaryrefslogtreecommitdiff
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-04-23 17:48:27 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-24 00:18:02 -0400
commit38ba0a65faf451dd46c7860b4fade84c0b8e444f (patch)
tree30689f565d6ff6a0b046e0c8b05a5aa7544144dd /net/ipv4/tcp.c
parent783c175f902b1ae011f12de45770e7912638ea1a (diff)
downloadlinux-3.10-38ba0a65faf451dd46c7860b4fade84c0b8e444f.tar.gz
linux-3.10-38ba0a65faf451dd46c7860b4fade84c0b8e444f.tar.bz2
linux-3.10-38ba0a65faf451dd46c7860b4fade84c0b8e444f.zip
net: skb_can_coalesce returns a boolean
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index bcc4eab5f25..de6a238f0e1 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -848,9 +848,10 @@ static ssize_t do_tcp_sendpages(struct sock *sk, struct page **pages, int poffse
while (psize > 0) {
struct sk_buff *skb = tcp_write_queue_tail(sk);
struct page *page = pages[poffset / PAGE_SIZE];
- int copy, i, can_coalesce;
+ int copy, i;
int offset = poffset % PAGE_SIZE;
int size = min_t(size_t, psize, PAGE_SIZE - offset);
+ bool can_coalesce;
if (!tcp_send_head(sk) || (copy = size_goal - skb->len) <= 0) {
new_segment: