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
@@ -84,16 +84,14 @@ static inline void drv_bss_info_changed(struct ieee80211_local *local,
|
||||
}
|
||||
|
||||
static inline u64 drv_prepare_multicast(struct ieee80211_local *local,
|
||||
int mc_count,
|
||||
struct dev_addr_list *mc_list)
|
||||
struct netdev_hw_addr_list *mc_list)
|
||||
{
|
||||
u64 ret = 0;
|
||||
|
||||
if (local->ops->prepare_multicast)
|
||||
ret = local->ops->prepare_multicast(&local->hw, mc_count,
|
||||
mc_list);
|
||||
ret = local->ops->prepare_multicast(&local->hw, mc_list);
|
||||
|
||||
trace_drv_prepare_multicast(local, mc_count, ret);
|
||||
trace_drv_prepare_multicast(local, mc_list->count, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user