1
0
This repository has been archived on 2024-07-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
svn-openwrt-archive/package/kernel/mac80211/patches/004-backports-add-skb_free_frag.patch
Felix Fietkau 747f2dd525 mac80211: backport from trunk r48782 + required kernel patches and mt76, mwlwifi
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48822
2016-02-29 17:19:04 +00:00

22 lines
558 B
Diff

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 */