9b672a8d14ec4e27c7d14bd6018059520ae8296c
[openwrt.git] / package / kernel / mac80211 / patches / 005-backports-add-napi_alloc_frag.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Thu, 28 Jan 2016 15:19:22 +0100
3 Subject: [PATCH] backports: add napi_alloc_frag
4
5 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
6 ---
7
8 --- a/backport-include/linux/netdevice.h
9 +++ b/backport-include/linux/netdevice.h
10 @@ -232,6 +232,10 @@ static inline void backport_unregister_n
11  #define unregister_netdevice_many LINUX_BACKPORT(unregister_netdevice_many)
12  #endif
13  
14 +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
15 +#define napi_alloc_frag netdev_alloc_frag
16 +#endif
17 +
18  /*
19   * Complicated way of saying: We only backport netdev_rss_key stuff on kernels
20   * that either already have net_get_random_once() (>= 3.13) or where we've been