net: convert multiple drivers to use netdev_for_each_mc_addr, part2
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
2a0d18f97c
commit
5508590c19
@@ -2161,13 +2161,13 @@ static void sbmac_setmulti(struct sbmac_softc *sc)
|
||||
* XXX if the table overflows */
|
||||
|
||||
idx = 1; /* skip station address */
|
||||
mclist = dev->mc_list;
|
||||
while (mclist && (idx < MAC_ADDR_COUNT)) {
|
||||
netdev_for_each_mc_addr(mclist, dev) {
|
||||
if (idx == MAC_ADDR_COUNT)
|
||||
break;
|
||||
reg = sbmac_addr2reg(mclist->dmi_addr);
|
||||
port = sc->sbm_base + R_MAC_ADDR_BASE+(idx * sizeof(uint64_t));
|
||||
__raw_writeq(reg, port);
|
||||
idx++;
|
||||
mclist = mclist->next;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user