net/arm: convert to use netdev_for_each_mc_addr
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
0bc88e4af0
commit
3b9a7728d8
@@ -351,13 +351,13 @@ static struct net_device_stats *am79c961_getstats (struct net_device *dev)
|
||||
return &priv->stats;
|
||||
}
|
||||
|
||||
static void am79c961_mc_hash(struct dev_mc_list *dmi, unsigned short *hash)
|
||||
static void am79c961_mc_hash(char *addr, unsigned short *hash)
|
||||
{
|
||||
if (dmi->dmi_addrlen == ETH_ALEN && dmi->dmi_addr[0] & 0x01) {
|
||||
if (addr[0] & 0x01) {
|
||||
int idx, bit;
|
||||
u32 crc;
|
||||
|
||||
crc = ether_crc_le(ETH_ALEN, dmi->dmi_addr);
|
||||
crc = ether_crc_le(ETH_ALEN, addr);
|
||||
|
||||
idx = crc >> 30;
|
||||
bit = (crc >> 26) & 15;
|
||||
@@ -387,8 +387,8 @@ static void am79c961_setmulticastlist (struct net_device *dev)
|
||||
|
||||
memset(multi_hash, 0x00, sizeof(multi_hash));
|
||||
|
||||
for (dmi = dev->mc_list; dmi; dmi = dmi->next)
|
||||
am79c961_mc_hash(dmi, multi_hash);
|
||||
netdev_for_each_mc_addr(dmi, dev)
|
||||
am79c961_mc_hash(dmi->dmi_addr, multi_hash);
|
||||
}
|
||||
|
||||
spin_lock_irqsave(&priv->chip_lock, flags);
|
||||
|
Reference in New Issue
Block a user