net: convert multiple drivers 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
d7b855c2dc
commit
e1d444771e
@@ -1287,9 +1287,8 @@ static void SetMulticastFilter(struct net_device *dev)
|
||||
lp->init_block.mcast_table[i] = 0;
|
||||
}
|
||||
/* Add multicast addresses */
|
||||
for (i = 0; i < netdev_mc_count(dev); i++) { /* for each address in the list */
|
||||
netdev_for_each_mc_addr(dmi, dev) {
|
||||
addrs = dmi->dmi_addr;
|
||||
dmi = dmi->next;
|
||||
if ((*addrs & 0x01) == 1) { /* multicast address? */
|
||||
crc = ether_crc(ETH_ALEN, addrs);
|
||||
hashcode = (crc & 1); /* hashcode is 6 LSb of CRC ... */
|
||||
|
Reference in New Issue
Block a user