diff options
author | Thomas Graf <tgraf@suug.ch> | 2013-12-13 09:22:17 -0500 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2014-01-06 18:52:42 -0500 |
commit | af2806f8f90a150160be898cd85332459c83c5cb (patch) | |
tree | d3476ee225083ad769e8d2374b840a4af0816560 /include/linux/skbuff.h | |
parent | 5f03f47c9c05086e181db3ec7a809f8454e28370 (diff) |
net: Export skb_zerocopy() to zerocopy from one skb to another
Make the skb zerocopy logic written for nfnetlink queue available for
use by other modules.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Reviewed-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index bec1cc7d5e3c..7c48e2d4c72b 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -2345,6 +2345,9 @@ int skb_splice_bits(struct sk_buff *skb, unsigned int offset, | |||
2345 | struct pipe_inode_info *pipe, unsigned int len, | 2345 | struct pipe_inode_info *pipe, unsigned int len, |
2346 | unsigned int flags); | 2346 | unsigned int flags); |
2347 | void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to); | 2347 | void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to); |
2348 | unsigned int skb_zerocopy_headlen(const struct sk_buff *from); | ||
2349 | void skb_zerocopy(struct sk_buff *to, const struct sk_buff *from, | ||
2350 | int len, int hlen); | ||
2348 | void skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len); | 2351 | void skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len); |
2349 | int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen); | 2352 | int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen); |
2350 | void skb_scrub_packet(struct sk_buff *skb, bool xnet); | 2353 | void skb_scrub_packet(struct sk_buff *skb, bool xnet); |