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/dm9000.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/dm9000.c')
-rw-r--r-- | drivers/net/dm9000.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c index 1c67f1138ca7..989f2beb123b 100644 --- a/drivers/net/dm9000.c +++ b/drivers/net/dm9000.c | |||
@@ -724,7 +724,7 @@ static void | |||
724 | dm9000_hash_table(struct net_device *dev) | 724 | dm9000_hash_table(struct net_device *dev) |
725 | { | 725 | { |
726 | board_info_t *db = netdev_priv(dev); | 726 | board_info_t *db = netdev_priv(dev); |
727 | struct dev_mc_list *mcptr; | 727 | struct netdev_hw_addr *ha; |
728 | int i, oft; | 728 | int i, oft; |
729 | u32 hash_val; | 729 | u32 hash_val; |
730 | u16 hash_table[4]; | 730 | u16 hash_table[4]; |
@@ -752,8 +752,8 @@ dm9000_hash_table(struct net_device *dev) | |||
752 | rcr |= RCR_ALL; | 752 | rcr |= RCR_ALL; |
753 | 753 | ||
754 | /* the multicast address in Hash Table : 64 bits */ | 754 | /* the multicast address in Hash Table : 64 bits */ |
755 | netdev_for_each_mc_addr(mcptr, dev) { | 755 | netdev_for_each_mc_addr(ha, dev) { |
756 | hash_val = ether_crc_le(6, mcptr->dmi_addr) & 0x3f; | 756 | hash_val = ether_crc_le(6, ha->addr) & 0x3f; |
757 | hash_table[hash_val / 16] |= (u16) 1 << (hash_val % 16); | 757 | hash_table[hash_val / 16] |= (u16) 1 << (hash_val % 16); |
758 | } | 758 | } |
759 | 759 | ||