diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-31 16:13:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-31 16:13:23 +0000 |
commit | f0ccd05a9f156e87f2be2acdd2b77e9d697053db (patch) | |
tree | 08e55d54a10acce0ab9d63a6c8b26c76ffebfb9b /package/kernel/mac80211/patches/004-backports-add-skb_free_frag.patch | |
parent | 3e5ac0150445119305a2aa2c00ea0f507b2430bd (diff) | |
download | master-187ad058-f0ccd05a9f156e87f2be2acdd2b77e9d697053db.tar.gz master-187ad058-f0ccd05a9f156e87f2be2acdd2b77e9d697053db.tar.bz2 master-187ad058-f0ccd05a9f156e87f2be2acdd2b77e9d697053db.zip |
mac80211: backport skb_free_frag and napi_alloc_frag
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48582 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/004-backports-add-skb_free_frag.patch')
-rw-r--r-- | package/kernel/mac80211/patches/004-backports-add-skb_free_frag.patch | 21 |
1 files changed, 21 insertions, 0 deletions
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 0000000000..9adfd8f719 --- /dev/null +++ b/package/kernel/mac80211/patches/004-backports-add-skb_free_frag.patch @@ -0,0 +1,21 @@ +From: Felix Fietkau <nbd@openwrt.org> +Date: Thu, 28 Jan 2016 15:16:35 +0100 +Subject: [PATCH] backports: add skb_free_frag() + +Signed-off-by: Felix Fietkau <nbd@openwrt.org> +--- + +--- 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 */ |