Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save defila-aws/44946d3a3c0874fe3d17 to your computer and use it in GitHub Desktop.
Save defila-aws/44946d3a3c0874fe3d17 to your computer and use it in GitHub Desktop.
patch-ubuntu_14.04.1-ixgbevf-2.16.1-kcompat.h.patch
--- /usr/src/ixgbevf-2.16.1/src/kcompat.h.orig 2015-02-03 18:34:22.901474028 +0000
+++ /usr/src/ixgbevf-2.16.1/src/kcompat.h 2015-02-03 18:35:32.577440102 +0000
@@ -3219,8 +3219,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
@@ -4174,8 +4172,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)
#else
#define HAVE_PTP_1588_CLOCK_PINS
#define HAVE_NETDEV_PORT
@defila-aws
Copy link
Author

This was created by using the modifications found here by "mchv": https://gist.github.com/mchv/e66a2a4117143aa3b92e

@defila-aws
Copy link
Author

Newline added at the end in attempt to resolve issues with pulling down this file and using it as a patch.

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