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>
This commit is contained in:
committed by
David S. Miller
parent
f9dcbcc9e3
commit
567ec874d1
@@ -1141,11 +1141,11 @@ static void velocity_set_multi(struct net_device *dev)
|
||||
int offset = MCAM_SIZE - vptr->multicast_limit;
|
||||
mac_get_cam_mask(regs, vptr->mCAMmask);
|
||||
|
||||
for (i = 0, mclist = dev->mc_list;
|
||||
mclist && i < netdev_mc_count(dev);
|
||||
i++, mclist = mclist->next) {
|
||||
i = 0;
|
||||
netdev_for_each_mc_addr(mclist, dev) {
|
||||
mac_set_cam(regs, i + offset, mclist->dmi_addr);
|
||||
vptr->mCAMmask[(offset + i) / 8] |= 1 << ((offset + i) & 7);
|
||||
i++;
|
||||
}
|
||||
|
||||
mac_set_cam_mask(regs, vptr->mCAMmask);
|
||||
|
Reference in New Issue
Block a user