summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorWillem de Bruijn2017-12-23 01:00:18 +0100
committerDavid S. Miller2017-12-27 22:44:13 +0100
commit111856c758d9a06145da446e0db8f71988eebf02 (patch)
treefed027fc1231358285e01c657323ea9947b1a44f /net
parentskbuff: in skb_segment, call zerocopy functions once per nskb (diff)
downloadkernel-qcow2-linux-111856c758d9a06145da446e0db8f71988eebf02.tar.gz
kernel-qcow2-linux-111856c758d9a06145da446e0db8f71988eebf02.tar.xz
kernel-qcow2-linux-111856c758d9a06145da446e0db8f71988eebf02.zip
tcp: push full zerocopy packets
Skbs that reach MAX_SKB_FRAGS cannot be extended further. Do the same for zerocopy frags as non-zerocopy frags and set the PSH bit. This improves GRO assembly. Suggested-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/tcp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 67d39b79c801..44102484a76f 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -1371,8 +1371,10 @@ new_segment:
pfrag->offset += copy;
} else {
err = skb_zerocopy_iter_stream(sk, skb, msg, copy, uarg);
- if (err == -EMSGSIZE || err == -EEXIST)
+ if (err == -EMSGSIZE || err == -EEXIST) {
+ tcp_mark_push(tp, skb);
goto new_segment;
+ }
if (err < 0)
goto do_error;
copy = err;