Files
wifipineapple-openwrt/package/kernel/mac80211/patches/005-backports-add-napi_alloc_frag.patch
Felix Fietkau f3a1db04f0 mac80211: backport from trunk r48782 + required kernel patches and mt76, mwlwifi
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48822 3c298f89-4303-0410-b956-a3cf2f4a3e73
2016-02-29 17:19:04 +00:00

21 lines
675 B
Diff

From: Felix Fietkau <nbd@openwrt.org>
Date: Thu, 28 Jan 2016 15:19:22 +0100
Subject: [PATCH] backports: add napi_alloc_frag
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
--- a/backport-include/linux/netdevice.h
+++ b/backport-include/linux/netdevice.h
@@ -232,6 +232,10 @@ static inline void backport_unregister_n
#define unregister_netdevice_many LINUX_BACKPORT(unregister_netdevice_many)
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
+#define napi_alloc_frag netdev_alloc_frag
+#endif
+
/*
* Complicated way of saying: We only backport netdev_rss_key stuff on kernels
* that either already have net_get_random_once() (>= 3.13) or where we've been