Skip to content

Instantly share code, notes, and snippets.

View fermayo's full-sized avatar

Fernando Mayo fermayo

View GitHub Profile
@fermayo
fermayo / patch-ubuntu_14.04.1-ixgbevf-2.16.1-kcompat.h.patch
Last active December 3, 2015 18:46 — forked from defila-aws/patch-ubuntu_14.04.1-ixgbevf-2.16.1-kcompat.h.patch
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))
@fermayo
fermayo / ixgbevf-upgrade.sh
Last active August 29, 2015 14:25 — forked from vdm/ixgbevf-upgrade.sh
ixgbevf 2.16.1 upgrade for AWS EC2 SR-IOV "Enhanced Networking" on Ubuntu 14.04 (Trusty) LTS
#/bin/sh
# Run as root!
set -e
apt-get update -q
# http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking.html#enhanced-networking-ubuntu
DEBIAN_FRONTEND=noninteractive apt-get install -y dkms linux-headers-generic
wget "http://sourceforge.net/projects/e1000/files/ixgbevf stable/2.16.1/ixgbevf-2.16.1.tar.gz"
tar zvxf ixgbevf-2.16.1.tar.gz