net: convert multicast list to list_head
Converts the list and the core manipulating with it to be the same as uc_list. +uses two functions for adding/removing mc address (normal and "global" variant) instead of a function parameter. +removes dev_mcast.c completely. +exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for manipulation with lists on a sandbox (used in bonding and 80211 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
a748ee2426
commit
22bedad3ce
@ -714,7 +714,7 @@ static void igmp6_group_added(struct ifmcaddr6 *mc)
|
||||
if (!(mc->mca_flags&MAF_LOADED)) {
|
||||
mc->mca_flags |= MAF_LOADED;
|
||||
if (ndisc_mc_map(&mc->mca_addr, buf, dev, 0) == 0)
|
||||
dev_mc_add(dev, buf, dev->addr_len, 0);
|
||||
dev_mc_add(dev, buf);
|
||||
}
|
||||
spin_unlock_bh(&mc->mca_lock);
|
||||
|
||||
@ -740,7 +740,7 @@ static void igmp6_group_dropped(struct ifmcaddr6 *mc)
|
||||
if (mc->mca_flags&MAF_LOADED) {
|
||||
mc->mca_flags &= ~MAF_LOADED;
|
||||
if (ndisc_mc_map(&mc->mca_addr, buf, dev, 0) == 0)
|
||||
dev_mc_delete(dev, buf, dev->addr_len, 0);
|
||||
dev_mc_del(dev, buf);
|
||||
}
|
||||
|
||||
if (mc->mca_flags & MAF_NOREPORT)
|
||||
|
Reference in New Issue
Block a user