net: skb_copy_datagram_const_iovec()
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 20 Apr 2009 01:25:46 +0000 (01:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2009 12:42:44 +0000 (05:42 -0700)
commit0a1ec07a67bd8b0033dace237249654d015efa21
tree1963b9ba273f0786c8a972c27b5599dfb4a19f06
parent0cededf3ffbb775c3716aa1d246338fdc24b1259
net: skb_copy_datagram_const_iovec()

There's an skb_copy_datagram_iovec() to copy out of a paged skb,
but it modifies the iovec, and does not support starting
at an offset in the destination. We want both in tun.c, so let's
add the function.

It's a carbon copy of skb_copy_datagram_iovec() with enough changes to
be annoying.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/linux/socket.h
net/core/datagram.c
net/core/iovec.c