diff options
| author | Patrick McHardy <kaber@trash.net> | 2010-04-20 10:02:01 -0400 |
|---|---|---|
| committer | Patrick McHardy <kaber@trash.net> | 2010-04-20 10:02:01 -0400 |
| commit | 62910554656cdcd6b6f84a5154c4155aae4ca231 (patch) | |
| tree | dcf14004f6fd2ef7154362ff948bfeba0f3ea92d /drivers/net/via-rhine.c | |
| parent | 22265a5c3c103cf8c50be62e6c90d045eb649e6d (diff) | |
| parent | ab9304717f7624c41927f442e6b6d418b2d8b3e4 (diff) | |
Merge branch 'master' of /repos/git/net-next-2.6
Conflicts:
Documentation/feature-removal-schedule.txt
net/ipv6/netfilter/ip6t_REJECT.c
net/netfilter/xt_limit.c
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'drivers/net/via-rhine.c')
| -rw-r--r-- | drivers/net/via-rhine.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c index 50f881aa3939..467bcff13cd0 100644 --- a/drivers/net/via-rhine.c +++ b/drivers/net/via-rhine.c | |||
| @@ -89,7 +89,6 @@ static const int multicast_filter_limit = 32; | |||
| 89 | #include <linux/timer.h> | 89 | #include <linux/timer.h> |
| 90 | #include <linux/errno.h> | 90 | #include <linux/errno.h> |
| 91 | #include <linux/ioport.h> | 91 | #include <linux/ioport.h> |
| 92 | #include <linux/slab.h> | ||
| 93 | #include <linux/interrupt.h> | 92 | #include <linux/interrupt.h> |
| 94 | #include <linux/pci.h> | 93 | #include <linux/pci.h> |
| 95 | #include <linux/dma-mapping.h> | 94 | #include <linux/dma-mapping.h> |
| @@ -1704,11 +1703,11 @@ static void rhine_set_rx_mode(struct net_device *dev) | |||
| 1704 | iowrite32(0xffffffff, ioaddr + MulticastFilter1); | 1703 | iowrite32(0xffffffff, ioaddr + MulticastFilter1); |
| 1705 | rx_mode = 0x0C; | 1704 | rx_mode = 0x0C; |
| 1706 | } else { | 1705 | } else { |
| 1707 | struct dev_mc_list *mclist; | 1706 | struct netdev_hw_addr *ha; |
| 1708 | 1707 | ||
| 1709 | memset(mc_filter, 0, sizeof(mc_filter)); | 1708 | memset(mc_filter, 0, sizeof(mc_filter)); |
| 1710 | netdev_for_each_mc_addr(mclist, dev) { | 1709 | netdev_for_each_mc_addr(ha, dev) { |
| 1711 | int bit_nr = ether_crc(ETH_ALEN, mclist->dmi_addr) >> 26; | 1710 | int bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; |
| 1712 | 1711 | ||
| 1713 | mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); | 1712 | mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); |
| 1714 | } | 1713 | } |
