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/fealnx.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/fealnx.c')
| -rw-r--r-- | drivers/net/fealnx.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/fealnx.c b/drivers/net/fealnx.c index 9d5ad08a119f..51b738dd6547 100644 --- a/drivers/net/fealnx.c +++ b/drivers/net/fealnx.c | |||
| @@ -74,7 +74,6 @@ static int full_duplex[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1 }; | |||
| 74 | #include <linux/timer.h> | 74 | #include <linux/timer.h> |
| 75 | #include <linux/errno.h> | 75 | #include <linux/errno.h> |
| 76 | #include <linux/ioport.h> | 76 | #include <linux/ioport.h> |
| 77 | #include <linux/slab.h> | ||
| 78 | #include <linux/interrupt.h> | 77 | #include <linux/interrupt.h> |
| 79 | #include <linux/pci.h> | 78 | #include <linux/pci.h> |
| 80 | #include <linux/netdevice.h> | 79 | #include <linux/netdevice.h> |
| @@ -1792,12 +1791,12 @@ static void __set_rx_mode(struct net_device *dev) | |||
| 1792 | memset(mc_filter, 0xff, sizeof(mc_filter)); | 1791 | memset(mc_filter, 0xff, sizeof(mc_filter)); |
| 1793 | rx_mode = CR_W_AB | CR_W_AM; | 1792 | rx_mode = CR_W_AB | CR_W_AM; |
| 1794 | } else { | 1793 | } else { |
| 1795 | struct dev_mc_list *mclist; | 1794 | struct netdev_hw_addr *ha; |
| 1796 | 1795 | ||
| 1797 | memset(mc_filter, 0, sizeof(mc_filter)); | 1796 | memset(mc_filter, 0, sizeof(mc_filter)); |
| 1798 | netdev_for_each_mc_addr(mclist, dev) { | 1797 | netdev_for_each_mc_addr(ha, dev) { |
| 1799 | unsigned int bit; | 1798 | unsigned int bit; |
| 1800 | bit = (ether_crc(ETH_ALEN, mclist->dmi_addr) >> 26) ^ 0x3F; | 1799 | bit = (ether_crc(ETH_ALEN, ha->addr) >> 26) ^ 0x3F; |
| 1801 | mc_filter[bit >> 5] |= (1 << bit); | 1800 | mc_filter[bit >> 5] |= (1 << bit); |
| 1802 | } | 1801 | } |
| 1803 | rx_mode = CR_W_AB | CR_W_AM; | 1802 | rx_mode = CR_W_AB | CR_W_AM; |
