[arch-commits] Commit in r8168/trunk (PKGBUILD linux-4.11.patch)

Massimiliano Torromeo mtorromeo at archlinux.org
Sat May 6 10:40:57 UTC 2017


    Date: Saturday, May 6, 2017 @ 10:40:56
  Author: mtorromeo
Revision: 227183

Applied patch for removed net_device last_rx member in kernel 4.11

Added:
  r8168/trunk/linux-4.11.patch
Modified:
  r8168/trunk/PKGBUILD

------------------+
 PKGBUILD         |   11 +++++++++--
 linux-4.11.patch |   14 ++++++++++++++
 2 files changed, 23 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-05-05 21:32:32 UTC (rev 227182)
+++ PKGBUILD	2017-05-06 10:40:56 UTC (rev 227183)
@@ -13,9 +13,16 @@
 depends=('glibc' 'linux')
 makedepends=('linux-headers')
 install=$pkgname.install
-source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+        linux-4.11.patch)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3'
+            '21857077bd5b26a08456f97f170b2772e8cadfb331577ddb2bcb680b31c5c0d3')
 
+prepare() {
+	cd "$pkgname-$pkgver"
+	patch -p1 -i "$srcdir/linux-4.11.patch"
+}
+
 build() {
 	_kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
 	KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-$_kernver-ARCH/version)

Added: linux-4.11.patch
===================================================================
--- linux-4.11.patch	                        (rev 0)
+++ linux-4.11.patch	2017-05-06 10:40:56 UTC (rev 227183)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
++++ b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+                         if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+                                 rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+                         dev->last_rx = jiffies;
++#endif
+                         RTLDEV->stats.rx_bytes += pkt_size;
+                         RTLDEV->stats.rx_packets++;
+                 }



More information about the arch-commits mailing list