diff options
author | Ilya Lesokhin <ilyal@mellanox.com> | 2018-04-30 03:16:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-01 09:42:46 -0400 |
commit | 08303c189581c985e60f588ad92a041e46b6e307 (patch) | |
tree | aae2a254c6441d9a060c4d0a3c99da57346653b0 /include/linux/skbuff.h | |
parent | 6dac152355d9308c9e187bf1d38d98afefcaa315 (diff) |
net: Rename and export copy_skb_header
copy_skb_header is renamed to skb_copy_header and
exported. Exposing this function give more flexibility
in copying SKBs.
skb_copy and skb_copy_expand do not give enough control
over which parts are copied.
Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index a4a5c0c5cba8..908d66e55b14 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -1034,6 +1034,7 @@ static inline struct sk_buff *alloc_skb_fclone(unsigned int size, | |||
1034 | struct sk_buff *skb_morph(struct sk_buff *dst, struct sk_buff *src); | 1034 | struct sk_buff *skb_morph(struct sk_buff *dst, struct sk_buff *src); |
1035 | int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask); | 1035 | int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask); |
1036 | struct sk_buff *skb_clone(struct sk_buff *skb, gfp_t priority); | 1036 | struct sk_buff *skb_clone(struct sk_buff *skb, gfp_t priority); |
1037 | void skb_copy_header(struct sk_buff *new, const struct sk_buff *old); | ||
1037 | struct sk_buff *skb_copy(const struct sk_buff *skb, gfp_t priority); | 1038 | struct sk_buff *skb_copy(const struct sk_buff *skb, gfp_t priority); |
1038 | struct sk_buff *__pskb_copy_fclone(struct sk_buff *skb, int headroom, | 1039 | struct sk_buff *__pskb_copy_fclone(struct sk_buff *skb, int headroom, |
1039 | gfp_t gfp_mask, bool fclone); | 1040 | gfp_t gfp_mask, bool fclone); |