Skip to content
Commit e66e9a31 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: allow better page reuse in splice(sock -> pipe)



splice() from socket to pipe needs linear_to_page() helper to transfert
skb header to part of page.

We can reset the offset in the current sk->sk_sndmsg_page if we are the
last user of the page.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent acd69962
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment