mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
net: group address list and its count
This patch is inspired by patch recently posted by Johannes Berg. Basically what my patch does is to group list and a count of addresses into newly introduced structure netdev_hw_addr_list. This brings us two benefits: 1) struct net_device becames a bit nicer. 2) in the future there will be a possibility to operate with lists independently on netdevices (with exporting right functions). I wanted to introduce this patch before I'll post a multicast lists conversion. Signed-off-by: Jiri Pirko <[email protected]> drivers/net/bnx2.c | 4 +- drivers/net/e1000/e1000_main.c | 4 +- drivers/net/ixgbe/ixgbe_main.c | 6 +- drivers/net/mv643xx_eth.c | 2 +- drivers/net/niu.c | 4 +- drivers/net/virtio_net.c | 10 ++-- drivers/s390/net/qeth_l2_main.c | 2 +- include/linux/netdevice.h | 17 +++-- net/core/dev.c | 130 ++++++++++++++++++-------------------- 9 files changed, 89 insertions(+), 90 deletions(-) Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
7b85576d15
commit
31278e7147
9 changed files with 89 additions and 90 deletions
|
|
@ -655,7 +655,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)
|
||||
list_for_each_entry(ha, &dev->uc.list, list)
|
||||
qeth_l2_add_mc(card, ha->addr, 1);
|
||||
|
||||
spin_unlock_bh(&card->mclock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue