net: use helpers to access uc list V2
This patch introduces three macros to work with uc list from net drivers. 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
9010bc3364
commit
32e7bfc411
@@ -622,7 +622,7 @@ static void qeth_l2_set_multicast_list(struct net_device *dev)
|
||||
for (dm = dev->mc_list; dm; dm = dm->next)
|
||||
qeth_l2_add_mc(card, dm->da_addr, 0);
|
||||
|
||||
list_for_each_entry(ha, &dev->uc.list, list)
|
||||
netdev_for_each_uc_addr(ha, dev)
|
||||
qeth_l2_add_mc(card, ha->addr, 1);
|
||||
|
||||
spin_unlock_bh(&card->mclock);
|
||||
|
Reference in New Issue
Block a user