Skip to content

Instantly share code, notes, and snippets.

@mchv
Last active August 29, 2015 14:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mchv/e66a2a4117143aa3b92e to your computer and use it in GitHub Desktop.
Save mchv/e66a2a4117143aa3b92e to your computer and use it in GitHub Desktop.
--- kcompat.h 2014-11-05 18:14:14.780832000 +0000
+++ kcompat-modified.h 2014-11-05 18:16:53.552832000 +0000
@@ -3172,8 +3172,6 @@
#define u64_stats_update_begin(a) do { } while(0)
#define u64_stats_update_end(a) do { } while(0)
#define u64_stats_fetch_begin(a) do { } while(0)
-#define u64_stats_fetch_retry_bh(a) (0)
-#define u64_stats_fetch_begin_bh(a) (0)
#if (RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,1))
#define HAVE_8021P_SUPPORT
@@ -4104,8 +4102,8 @@
/*****************************************************************************/
#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0) )
-#define u64_stats_fetch_begin_irq u64_stats_fetch_begin_bh
-#define u64_stats_fetch_retry_irq u64_stats_fetch_retry_bh
+#define u64_stats_fetch_begin_irq(a) (0)
+#define u64_stats_fetch_retry_irq(a, b) (0)
#endif /* 3.15.0 */
/*****************************************************************************/
@defila-aws
Copy link

Thank you for this. I used this to create a patch for ixgbevf-2.16.1 to be used on Ubuntu 14.04.1: https://gist.github.com/defila-aws/44946d3a3c0874fe3d17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment