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
@@ -412,8 +412,7 @@ static int ieee80211_stop(struct net_device *dev)
|
||||
|
||||
netif_addr_lock_bh(dev);
|
||||
spin_lock_bh(&local->filter_lock);
|
||||
__dev_addr_unsync(&local->mc_list, &local->mc_count,
|
||||
&dev->mc_list, &dev->mc_count);
|
||||
__hw_addr_unsync(&local->mc_list, &dev->mc, dev->addr_len);
|
||||
spin_unlock_bh(&local->filter_lock);
|
||||
netif_addr_unlock_bh(dev);
|
||||
|
||||
@@ -596,8 +595,7 @@ static void ieee80211_set_multicast_list(struct net_device *dev)
|
||||
sdata->flags ^= IEEE80211_SDATA_PROMISC;
|
||||
}
|
||||
spin_lock_bh(&local->filter_lock);
|
||||
__dev_addr_sync(&local->mc_list, &local->mc_count,
|
||||
&dev->mc_list, &dev->mc_count);
|
||||
__hw_addr_sync(&local->mc_list, &dev->mc, dev->addr_len);
|
||||
spin_unlock_bh(&local->filter_lock);
|
||||
ieee80211_queue_work(&local->hw, &local->reconfig_filter);
|
||||
}
|
||||
|
Reference in New Issue
Block a user