diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-04-01 17:22:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-03 17:22:15 -0400 |
commit | 22bedad3ce112d5ca1eaf043d4990fa2ed698c87 (patch) | |
tree | b6fba5688d48b1396f01d13ee53610dea7749c15 /drivers/net/au1000_eth.c | |
parent | a748ee2426817a95b1f03012d8f339c45c722ae1 (diff) |
net: convert multicast list to list_head
Converts the list and the core manipulating with it to be the same as uc_list.
+uses two functions for adding/removing mc address (normal and "global"
variant) instead of a function parameter.
+removes dev_mcast.c completely.
+exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
manipulation with lists on a sandbox (used in bonding and 80211 drivers)
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/au1000_eth.c')
-rw-r--r-- | drivers/net/au1000_eth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/au1000_eth.c b/drivers/net/au1000_eth.c index 4da191b87b0d..29631593cc23 100644 --- a/drivers/net/au1000_eth.c +++ b/drivers/net/au1000_eth.c | |||
@@ -957,12 +957,12 @@ static void au1000_multicast_list(struct net_device *dev) | |||
957 | aup->mac->control &= ~MAC_PROMISCUOUS; | 957 | aup->mac->control &= ~MAC_PROMISCUOUS; |
958 | printk(KERN_INFO "%s: Pass all multicast\n", dev->name); | 958 | printk(KERN_INFO "%s: Pass all multicast\n", dev->name); |
959 | } else { | 959 | } else { |
960 | struct dev_mc_list *mclist; | 960 | struct netdev_hw_addr *ha; |
961 | u32 mc_filter[2]; /* Multicast hash filter */ | 961 | u32 mc_filter[2]; /* Multicast hash filter */ |
962 | 962 | ||
963 | mc_filter[1] = mc_filter[0] = 0; | 963 | mc_filter[1] = mc_filter[0] = 0; |
964 | netdev_for_each_mc_addr(mclist, dev) | 964 | netdev_for_each_mc_addr(ha, dev) |
965 | set_bit(ether_crc(ETH_ALEN, mclist->dmi_addr)>>26, | 965 | set_bit(ether_crc(ETH_ALEN, ha->addr)>>26, |
966 | (long *)mc_filter); | 966 | (long *)mc_filter); |
967 | aup->mac->multi_hash_high = mc_filter[1]; | 967 | aup->mac->multi_hash_high = mc_filter[1]; |
968 | aup->mac->multi_hash_low = mc_filter[0]; | 968 | aup->mac->multi_hash_low = mc_filter[0]; |