aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2013-08-06 17:45:04 +0800
committerDavid S. Miller <davem@davemloft.net>2013-08-07 16:52:34 -0700
commitc3bdeb5c7cc073ccf5ff9624642022a8613a956e (patch)
tree59dd31538e9da9d5adecbc9c96d7d8a1aa0aa50d /include
parentnet: move iov_pages() to net/core/iovec.c (diff)
downloadlinux-dev-c3bdeb5c7cc073ccf5ff9624642022a8613a956e.tar.xz
linux-dev-c3bdeb5c7cc073ccf5ff9624642022a8613a956e.zip
net: move zerocopy_sg_from_iovec() to net/core/datagram.c
To let it be reused and reduce code duplication. Also document this function. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/skbuff.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index ae46475d4568..5ac96f31d546 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -2359,6 +2359,10 @@ extern int skb_copy_datagram_from_iovec(struct sk_buff *skb,
const struct iovec *from,
int from_offset,
int len);
+extern int zerocopy_sg_from_iovec(struct sk_buff *skb,
+ const struct iovec *frm,
+ int offset,
+ size_t count);
extern int skb_copy_datagram_const_iovec(const struct sk_buff *from,
int offset,
const struct iovec *to,