diff options
author | Jason Wang <jasowang@redhat.com> | 2013-08-06 17:45:04 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-07 16:52:34 -0700 |
commit | c3bdeb5c7cc073ccf5ff9624642022a8613a956e (patch) | |
tree | 59dd31538e9da9d5adecbc9c96d7d8a1aa0aa50d /include/linux/skbuff.h | |
parent | b4bf07771faaf959b0a916d35b1b930c030e30a8 (diff) | |
download | linux-stable-c3bdeb5c7cc073ccf5ff9624642022a8613a956e.tar.gz linux-stable-c3bdeb5c7cc073ccf5ff9624642022a8613a956e.tar.bz2 linux-stable-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/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 4 |
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, |