diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-02-23 18:17:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-26 05:07:31 -0500 |
commit | 567ec874d15b478c8eda7e9a5d2dcb05f13f1fb5 (patch) | |
tree | e0c22740e44eca6f035e7dccbcff114a72d007a3 /drivers/net/tg3.c | |
parent | f9dcbcc9e338d08c0f7de7eba4eaafbbb7f81249 (diff) |
net: convert multiple drivers to use netdev_for_each_mc_addr, part6
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index f204f73c4f99..0d06e4007f44 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -9458,15 +9458,12 @@ static void __tg3_set_rx_mode(struct net_device *dev) | |||
9458 | } else { | 9458 | } else { |
9459 | /* Accept one or more multicast(s). */ | 9459 | /* Accept one or more multicast(s). */ |
9460 | struct dev_mc_list *mclist; | 9460 | struct dev_mc_list *mclist; |
9461 | unsigned int i; | ||
9462 | u32 mc_filter[4] = { 0, }; | 9461 | u32 mc_filter[4] = { 0, }; |
9463 | u32 regidx; | 9462 | u32 regidx; |
9464 | u32 bit; | 9463 | u32 bit; |
9465 | u32 crc; | 9464 | u32 crc; |
9466 | 9465 | ||
9467 | for (i = 0, mclist = dev->mc_list; mclist && i < netdev_mc_count(dev); | 9466 | netdev_for_each_mc_addr(mclist, dev) { |
9468 | i++, mclist = mclist->next) { | ||
9469 | |||
9470 | crc = calc_crc (mclist->dmi_addr, ETH_ALEN); | 9467 | crc = calc_crc (mclist->dmi_addr, ETH_ALEN); |
9471 | bit = ~crc & 0x7f; | 9468 | bit = ~crc & 0x7f; |
9472 | regidx = (bit & 0x60) >> 5; | 9469 | regidx = (bit & 0x60) >> 5; |