]> git.baikalelectronics.ru Git - kernel.git/commit
net: splice: avoid high order page splitting
authorEric Dumazet <edumazet@google.com>
Sat, 5 Jan 2013 21:31:18 +0000 (21:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jan 2013 05:07:24 +0000 (21:07 -0800)
commitc6c8f08e2e9f0e4bff6e1d54119e114660eaef68
tree0dfad0c3a33ab51ec4b5859c772a21ce0b50f466
parent8662dbbd18f9f0b338e1fcbc31713fef47e25d80
net: splice: avoid high order page splitting

splice() can handle pages of any order, but network code tries hard to
split them in PAGE_SIZE units. Not quite successfully anyway, as
__splice_segment() assumed poff < PAGE_SIZE. This is true for
the skb->data part, not necessarily for the fragments.

This patch removes this logic to give the pages as they are in the skb.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willy Tarreau <w@1wt.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c