005-backports-add-napi_alloc_frag.patch 675 B

1234567891011121314151617181920
  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. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
  5. ---
  6. --- a/backport-include/linux/netdevice.h
  7. +++ b/backport-include/linux/netdevice.h
  8. @@ -232,6 +232,10 @@ static inline void backport_unregister_n
  9. #define unregister_netdevice_many LINUX_BACKPORT(unregister_netdevice_many)
  10. #endif
  11. +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
  12. +#define napi_alloc_frag netdev_alloc_frag
  13. +#endif
  14. +
  15. /*
  16. * Complicated way of saying: We only backport netdev_rss_key stuff on kernels
  17. * that either already have net_get_random_once() (>= 3.13) or where we've been