summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2014-06-16 00:17:15 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2014-06-17 00:30:28 +0200
commited0bad4f3c4f47c00435abd4572ccda3d63680da (patch)
tree8b80915b3a7e3250988d1ba24cab96012b704d1d
parent53d587450dd4de32d5f9bbc03794359b020f35d5 (diff)
backports: add __pskb_copy_fclone()
__pskb_copy() was renamed to __pskb_copy_fclone() in most places and got an extra parameter, it should be safe to just ignore this extra parameter. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--backport/backport-include/linux/skbuff.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/backport/backport-include/linux/skbuff.h b/backport/backport-include/linux/skbuff.h
index 2576faf2..a7076638 100644
--- a/backport/backport-include/linux/skbuff.h
+++ b/backport/backport-include/linux/skbuff.h
@@ -373,4 +373,14 @@ skb_set_hash(struct sk_buff *skb, __u32 hash, enum pkt_hash_types type)
}
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,14,0) */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0)
+#define __pskb_copy_fclone LINUX_BACKPORT(__pskb_copy_fclone)
+static inline struct sk_buff *__pskb_copy_fclone(struct sk_buff *skb,
+ int headroom, gfp_t gfp_mask,
+ bool fclone)
+{
+ return __pskb_copy(skb, headroom, gfp_mask);
+}
+#endif
+
#endif /* __BACKPORT_SKBUFF_H */