From 7695d614df8c4877c081de737e56eee8cacddbd8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 31 Jan 2016 16:13:23 +0000 Subject: mac80211: backport skb_free_frag and napi_alloc_frag Signed-off-by: Felix Fietkau SVN-Revision: 48582 --- .../patches/004-backports-add-skb_free_frag.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 package/kernel/mac80211/patches/004-backports-add-skb_free_frag.patch (limited to 'package/kernel/mac80211/patches/004-backports-add-skb_free_frag.patch') diff --git a/package/kernel/mac80211/patches/004-backports-add-skb_free_frag.patch b/package/kernel/mac80211/patches/004-backports-add-skb_free_frag.patch new file mode 100644 index 0000000..9adfd8f --- /dev/null +++ b/package/kernel/mac80211/patches/004-backports-add-skb_free_frag.patch @@ -0,0 +1,21 @@ +From: Felix Fietkau +Date: Thu, 28 Jan 2016 15:16:35 +0100 +Subject: [PATCH] backports: add skb_free_frag() + +Signed-off-by: Felix Fietkau +--- + +--- a/backport-include/linux/skbuff.h ++++ b/backport-include/linux/skbuff.h +@@ -300,4 +300,11 @@ int skb_ensure_writable(struct sk_buff * + + #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0) */ + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0) ++static inline void skb_free_frag(void *data) ++{ ++ put_page(virt_to_head_page(data)); ++} ++#endif ++ + #endif /* __BACKPORT_SKBUFF_H */ -- cgit v1.1