]> git.pld-linux.org Git - packages/ixgbe.git/blob - linux-4.6.patch
- fix building with linux 4.7 and compatiility with linux 4.6
[packages/ixgbe.git] / linux-4.6.patch
1 --- ixgbe-4.4.6/src/ixgbe_main.c.orig   2016-06-02 00:50:01.000000000 +0200
2 +++ ixgbe-4.4.6/src/ixgbe_main.c        2016-08-01 20:57:46.424973720 +0200
3 @@ -1656,7 +1656,11 @@
4         /* Even if we own the page, we are not allowed to use atomic_set()
5          * This would break get_page_unless_zero() users.
6          */
7 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,6,0))
8         atomic_inc(&page->_count);
9 +#else
10 +       page_ref_inc(page);
11 +#endif
12  
13         return true;
14  }
This page took 0.101346 seconds and 3 git commands to generate.