[packages/ixgbe] - updated to 4.1.1 - fixed building with linux 4.1

baggins baggins at pld-linux.org
Sat Jul 4 14:44:56 CEST 2015


commit 9127317a16d823a664650da4b588eface0fb9a85
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jul 4 14:44:35 2015 +0200

    - updated to 4.1.1
    - fixed building with linux 4.1

 ixgbe.spec      |  8 +++++---
 linux-4.1.patch | 36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 3 deletions(-)
---
diff --git a/ixgbe.spec b/ixgbe.spec
index cf63842..643a1e9 100644
--- a/ixgbe.spec
+++ b/ixgbe.spec
@@ -9,12 +9,13 @@
 Summary:	Intel(R) 10 Gigabit driver for Linux
 Summary(pl.UTF-8):	Sterownik do karty Intel(R) 10 Gigabit
 Name:		%{pname}%{_alt_kernel}
-Version:	4.0.3
+Version:	4.1.1
 Release:	%{rel}@%{_kernel_ver_str}
 License:	GPL v2
 Group:		Base/Kernel
 Source0:	http://downloads.sourceforge.net/e1000/%{pname}-%{version}.tar.gz
-# Source0-md5:	fd81102645a6cbdea727a52f7b9d34f5
+# Source0-md5:	a9f21c59f7189d3e0f3e97a8cd812670
+Patch0:		linux-4.1.patch
 URL:		http://sourceforge.net/projects/e1000/
 %{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}
 BuildRequires:	rpmbuild(macros) >= 1.701
@@ -77,6 +78,7 @@ EOF\
 
 %prep
 %setup -q -n %{pname}-%{version}
+%patch0 -p1
 
 cp src/Makefile src/Makefile.%{name}
 cat > src/Makefile <<'EOF'
@@ -86,7 +88,7 @@ ixgbe_lib.o ixgbe_ethtool.o kcompat.o ixgbe_82598.o \
 ixgbe_82599.o ixgbe_ptp.o ixgbe_x540.o ixgbe_x550.o ixgbe_sriov.o \
 ixgbe_mbx.o ixgbe_dcb.o ixgbe_dcb_82598.o ixgbe_dcb_82599.o \
 ixgbe_sysfs.o ixgbe_procfs.o ixgbe_phy.o ixgbe_fcoe.o \
-ixgbe_dcb_nl.o ixgbe_dcb_nl.o ixgbe_debugfs.o
+ixgbe_dcb_nl.o ixgbe_debugfs.o
 
 EXTRA_CFLAGS+=-DDRIVER_IXGBE
 EXTRA_CFLAGS+=-DIXGBE_PTP
diff --git a/linux-4.1.patch b/linux-4.1.patch
new file mode 100644
index 0000000..80afa64
--- /dev/null
+++ b/linux-4.1.patch
@@ -0,0 +1,36 @@
+--- ixgbe-4.1.1/src/ixgbe_main.c~	2015-04-30 02:13:22.000000000 +0200
++++ ixgbe-4.1.1/src/ixgbe_main.c	2015-07-04 14:40:47.319817216 +0200
+@@ -9447,7 +9447,11 @@
+ 	return 0;
+ }
+ 
+-#ifdef HAVE_BRIDGE_FILTER
++#ifdef HAVE_NDO_BRIDGE_GETLINK_NLFLAGS
++static int ixgbe_ndo_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq,
++				  struct net_device *dev, u32 filter_mask,
++				  int nlflags)
++#elif defined(HAVE_BRIDGE_FILTER)
+ static int ixgbe_ndo_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq,
+ 				    struct net_device *dev,
+ 				    u32 __always_unused filter_mask)
+@@ -9464,7 +9464,9 @@
+ 
+ 	mode = adapter->bridge_mode;
+ 
+-#ifdef HAVE_NDO_FDB_ADD_VID
++#ifdef HAVE_NDO_BRIDGE_GETLINK_NLFLAGS
++	return ndo_dflt_bridge_getlink(skb, pid, seq, dev, mode, 0, 0, nlflags);
++#elif defined(HAVE_NDO_FDB_ADD_VID)
+ 	return ndo_dflt_bridge_getlink(skb, pid, seq, dev, mode, 0, 0);
+ #else
+ 	return ndo_dflt_bridge_getlink(skb, pid, seq, dev, mode);
+--- ixgbe-4.1.1/src/kcompat.h~	2015-04-30 02:13:22.000000000 +0200
++++ ixgbe-4.1.1/src/kcompat.h	2015-07-04 14:44:02.702152426 +0200
+@@ -4539,6 +4539,7 @@
+ #endif
+ #else
+ #define HAVE_PTP_CLOCK_INFO_GETTIME64
++#define HAVE_NDO_BRIDGE_GETLINK_NLFLAGS
+ #endif /* 4,1,0 */
+ 
+ #endif /* _KCOMPAT_H_ */
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ixgbe.git/commitdiff/9127317a16d823a664650da4b588eface0fb9a85



More information about the pld-cvs-commit mailing list