[packages/ixgbe] - up to 4.1.2 - fix building with linux 4.2

baggins baggins at pld-linux.org
Sun Sep 27 21:15:07 CEST 2015


commit 3c927ab3a4940d40a560d320d99d741ad1e692de
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Sep 27 21:14:32 2015 +0200

    - up to 4.1.2
    - fix building with linux 4.2

 ixgbe.spec      |  6 ++++--
 linux-4.1.patch | 10 ----------
 linux-4.2.patch | 27 +++++++++++++++++++++++++++
 3 files changed, 31 insertions(+), 12 deletions(-)
---
diff --git a/ixgbe.spec b/ixgbe.spec
index 643a1e9..6aab28b 100644
--- a/ixgbe.spec
+++ b/ixgbe.spec
@@ -9,13 +9,14 @@
 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.1.1
+Version:	4.1.2
 Release:	%{rel}@%{_kernel_ver_str}
 License:	GPL v2
 Group:		Base/Kernel
 Source0:	http://downloads.sourceforge.net/e1000/%{pname}-%{version}.tar.gz
-# Source0-md5:	a9f21c59f7189d3e0f3e97a8cd812670
+# Source0-md5:	191f7b0f31596cc0edc7e870ca05d037
 Patch0:		linux-4.1.patch
+Patch1:		linux-4.2.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
@@ -79,6 +80,7 @@ EOF\
 %prep
 %setup -q -n %{pname}-%{version}
 %patch0 -p1
+%patch1 -p1
 
 cp src/Makefile src/Makefile.%{name}
 cat > src/Makefile <<'EOF'
diff --git a/linux-4.1.patch b/linux-4.1.patch
index 80afa64..d1f3c10 100644
--- a/linux-4.1.patch
+++ b/linux-4.1.patch
@@ -24,13 +24,3 @@
  	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_ */
diff --git a/linux-4.2.patch b/linux-4.2.patch
new file mode 100644
index 0000000..57a8c5b
--- /dev/null
+++ b/linux-4.2.patch
@@ -0,0 +1,27 @@
+--- ixgbe-4.1.2/src/ixgbe_main.c~	2015-09-27 11:47:47.000000000 +0200
++++ ixgbe-4.1.2/src/ixgbe_main.c	2015-09-27 21:07:30.561309223 +0200
+@@ -2079,8 +2079,12 @@
+ static inline bool ixgbe_page_is_reserved(struct page *page)
+ {
+ #ifdef HAVE_STRUCT_PAGE_PFMEMALLOC
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0) )
+ 	return (page_to_nid(page) != numa_mem_id()) || page->pfmemalloc;
+ #else
++	return (page_to_nid(page) != numa_mem_id()) || page_is_pfmemalloc(page);
++#endif
++#else
+ 	return (page_to_nid(page) != numa_mem_id());
+ #endif
+ }
+@@ -9473,7 +9473,11 @@
+ 	mode = adapter->bridge_mode;
+ 
+ #ifdef HAVE_NDO_BRIDGE_GETLINK_NLFLAGS
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0) )
+ 	return ndo_dflt_bridge_getlink(skb, pid, seq, dev, mode, 0, 0, nlflags);
++#else
++	return ndo_dflt_bridge_getlink(skb, pid, seq, dev, mode, 0, 0, nlflags, filter_mask, NULL);
++#endif
+ #elif defined(HAVE_NDO_FDB_ADD_VID)
+ 	return ndo_dflt_bridge_getlink(skb, pid, seq, dev, mode, 0, 0);
+ #else
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ixgbe.git/commitdiff/3c927ab3a4940d40a560d320d99d741ad1e692de



More information about the pld-cvs-commit mailing list