Date: Wednesday, March 16, 2016 @ 09:25:29 Author: mtorromeo Revision: 166901
upgpkg: r8168 8.041.00-8 Added: r8168/trunk/linux-4.5.patch Modified: r8168/trunk/PKGBUILD -----------------+ PKGBUILD | 13 ++++++++++--- linux-4.5.patch | 13 +++++++++++++ 2 files changed, 23 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-03-16 08:25:03 UTC (rev 166900) +++ PKGBUILD 2016-03-16 08:25:29 UTC (rev 166901) @@ -5,7 +5,7 @@ pkgname=r8168 pkgver=8.041.00 -pkgrel=7 +pkgrel=8 pkgdesc="A kernel module for Realtek 8168 network cards" url="http://www.realtek.com.tw" license=("GPL") @@ -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=('d56f60e4157ccbf8f8717270b1acb391b0a959d9a96c2f0b4a91c683aa8b83a5') +source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz + linux-4.5.patch) +sha256sums=('d56f60e4157ccbf8f8717270b1acb391b0a959d9a96c2f0b4a91c683aa8b83a5' + 'e05a4bccf28beecc97db246064a5fe80d1303476b76086bd262c9c8db82b2e6e') +prepare() { + cd "$pkgname-$pkgver" + patch -p1 -i ../linux-4.5.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.5.patch =================================================================== --- linux-4.5.patch (rev 0) +++ linux-4.5.patch 2016-03-16 08:25:29 UTC (rev 166901) @@ -0,0 +1,13 @@ +diff --git a/src/r8168_n.c b/src/r8168_n.c +index d197630..b47419d 100755 +--- a/src/r8168_n.c ++++ b/src/r8168_n.c +@@ -4209,7 +4209,7 @@ static netdev_features_t rtl8168_fix_features(struct net_device *dev, + spin_lock_irqsave(&tp->lock, flags); + if (dev->mtu > ETH_DATA_LEN) { + features &= ~NETIF_F_ALL_TSO; +- features &= ~NETIF_F_ALL_CSUM; ++ features &= ~NETIF_F_CSUM_MASK; + } + spin_unlock_irqrestore(&tp->lock, flags); +
