Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gnometesting.git;a=commitdiff;h=12d63d5dfe646a65b2af9bd88c1d2d974da67b6c

commit 12d63d5dfe646a65b2af9bd88c1d2d974da67b6c
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Sat Mar 13 17:49:48 2010 +0100

r8169-6.010.00-10-i686

- add kernel-2.6.33.patch

diff --git a/source/network-extra/r8169/FrugalBuild 
b/source/network-extra/r8169/FrugalBuild
index 29eb7ab..a3ef5d5 100644
--- a/source/network-extra/r8169/FrugalBuild
+++ b/source/network-extra/r8169/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=r8169
pkgver=6.010.00
-pkgrel=9
+pkgrel=10
Finclude sourceforge kernel-module
pkgdesc="Realtek driver for RTL8169/8110 cards."
url="http://www.realtek.com.tw";
@@ -11,10 +11,11 @@ groups=('network-extra')
archs=('i686' 'x86_64')
up2date="Flasttar ftp://WebUser:dax7...@202.65.194.211/cn/nic/";
source=(ftp://WebUser:dax7...@202.65.194.212/cn/nic/r8169-$pkgver.tar.bz2 \
-       kernel-2.6.3{0,1}.patch)
+       kernel-2.6.3{0,1,3}.patch)
sha1sums=('4a96f2abea67bf389235e35aab845439216d12fb' \
'fac6a84e1e027942339d5d692a03efe7ddce26d8' \
-          '1e14ec6ce2980f9c83d7b1ab247cd0ca6521e890')
+          '1e14ec6ce2980f9c83d7b1ab247cd0ca6521e890' \
+          '07ae57dad0525d4bc9fd362ad43806c7b4b6a132')

build() {
unset MAKEFLAGS
diff --git a/source/network-extra/r8169/kernel-2.6.33.patch 
b/source/network-extra/r8169/kernel-2.6.33.patch
new file mode 100644
index 0000000..6acac6f
--- /dev/null
+++ b/source/network-extra/r8169/kernel-2.6.33.patch
@@ -0,0 +1,30 @@
+diff --git a/src/r8169_n.c b/src/r8169_n.c
+index c0b7d0f..83e4755 100644
+--- a/src/r8169_n.c
++++ b/src/r8169_n.c
+@@ -1035,9 +1035,14 @@ struct rtl8169_counters {
+       u16     tx_underun;
+ };
+
+-static int rtl8169_get_stats_count(struct net_device *dev)
++static int rtl8169_get_sset_count(struct net_device *dev, int stringset)
+ {
+-      return ARRAY_SIZE(rtl8169_gstrings);
++      switch (stringset) {
++      case ETH_SS_STATS:
++              return ARRAY_SIZE(rtl8169_gstrings);
++      default:
++              return -EINVAL;
++      }
+ }
+
+ static void rtl8169_get_ethtool_stats(struct net_device *dev,
+@@ -1148,7 +1153,7 @@ static struct ethtool_ops rtl8169_ethtool_ops = {
+       .get_wol                = rtl8169_get_wol,
+       .set_wol                = rtl8169_set_wol,
+       .get_strings            = rtl8169_get_strings,
+-      .get_stats_count        = rtl8169_get_stats_count,
++      .get_sset_count = rtl8169_get_sset_count,
+       .get_ethtool_stats      = rtl8169_get_ethtool_stats,
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+ #ifdef ETHTOOL_GPERMADDR
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to