# HG changeset patch # User Florian Pose # Date 1343050362 -7200 # Node ID a6e2874fb0bdd5197eb579d48e88409d03b46138 # Parent d46f2668a409265285c99b88eaf3e6c68eb18d89 Fixed 8139too driver for 2.6.36. diff -r d46f2668a409 -r a6e2874fb0bd devices/8139too-2.6.36-ethercat.c --- a/devices/8139too-2.6.36-ethercat.c Mon Jul 23 12:23:42 2012 +0200 +++ b/devices/8139too-2.6.36-ethercat.c Mon Jul 23 15:32:42 2012 +0200 @@ -1784,7 +1784,7 @@ void __iomem *ioaddr = tp->mmio_addr; unsigned int entry; unsigned int len = skb->len; - unsigned long flags; + unsigned long flags = 0; /* Calculate the next Tx descriptor entry. */ entry = tp->cur_tx % NUM_TX_DESC; @@ -2661,8 +2661,8 @@ AcceptBroadcast | AcceptMulticast | AcceptMyPhys | AcceptAllPhys; mc_filter[1] = mc_filter[0] = 0xffffffff; - } else if ((dev->mc_count > multicast_filter_limit) - || (dev->flags & IFF_ALLMULTI)) { + } else if ((netdev_mc_count(dev) > multicast_filter_limit) || + (dev->flags & IFF_ALLMULTI)) { /* Too many to filter perfectly -- accept all multicasts. */ rx_mode = AcceptBroadcast | AcceptMulticast | AcceptMyPhys; mc_filter[1] = mc_filter[0] = 0xffffffff;