mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
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>
This commit is contained in:
parent
b4bf07771f
commit
c3bdeb5c7c
4 changed files with 97 additions and 160 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue