aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/patches-2.6.37/906-adm5120sw-mc_count-fix.patch
diff options
context:
space:
mode:
authorAlexandros C. Couloumbis <alex@ozo.com>2010-11-12 17:06:16 +0000
committerAlexandros C. Couloumbis <alex@ozo.com>2010-11-12 17:06:16 +0000
commit67d4581c1b6d051ed369ee1d43f41e2576034e2e (patch)
treec6e7a08bcd301d22e357fb8154f61981b257c31a /target/linux/adm5120/patches-2.6.37/906-adm5120sw-mc_count-fix.patch
parentac8deaa5fe74a40403dc4f06ad03d25aa1f91cea (diff)
downloadmaster-187ad058-67d4581c1b6d051ed369ee1d43f41e2576034e2e.tar.gz
master-187ad058-67d4581c1b6d051ed369ee1d43f41e2576034e2e.tar.bz2
master-187ad058-67d4581c1b6d051ed369ee1d43f41e2576034e2e.zip
linux/adm5120: add preliminary 2.6.37 kernel support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23973 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/patches-2.6.37/906-adm5120sw-mc_count-fix.patch')
-rw-r--r--target/linux/adm5120/patches-2.6.37/906-adm5120sw-mc_count-fix.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/adm5120/patches-2.6.37/906-adm5120sw-mc_count-fix.patch b/target/linux/adm5120/patches-2.6.37/906-adm5120sw-mc_count-fix.patch
new file mode 100644
index 0000000000..cb1b376da7
--- /dev/null
+++ b/target/linux/adm5120/patches-2.6.37/906-adm5120sw-mc_count-fix.patch
@@ -0,0 +1,11 @@
+--- a/drivers/net/adm5120sw.c
++++ b/drivers/net/adm5120sw.c
+@@ -937,7 +937,7 @@ static void adm5120_if_set_multicast_lis
+ t |= (ports << CPUP_CONF_DUNP_SHIFT);
+
+ if (dev->flags & IFF_PROMISC || dev->flags & IFF_ALLMULTI ||
+- dev->mc_count)
++ netdev_mc_count(dev))
+ /* enable multicast packets */
+ t &= ~(ports << CPUP_CONF_DMCP_SHIFT);
+ else