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
@@ -444,14 +444,14 @@ static void smsc75xx_set_multicast(struct net_device *netdev)
|
||||
netif_dbg(dev, drv, dev->net, "receive all multicast enabled");
|
||||
pdata->rfe_ctl |= RFE_CTL_AM | RFE_CTL_DPF;
|
||||
} else if (!netdev_mc_empty(dev->net)) {
|
||||
struct dev_mc_list *mc_list;
|
||||
struct netdev_hw_addr *ha;
|
||||
|
||||
netif_dbg(dev, drv, dev->net, "receive multicast hash filter");
|
||||
|
||||
pdata->rfe_ctl |= RFE_CTL_MHF | RFE_CTL_DPF;
|
||||
|
||||
netdev_for_each_mc_addr(mc_list, netdev) {
|
||||
u32 bitnum = smsc75xx_hash(mc_list->dmi_addr);
|
||||
netdev_for_each_mc_addr(ha, netdev) {
|
||||
u32 bitnum = smsc75xx_hash(ha->addr);
|
||||
pdata->multicast_hash_table[bitnum / 32] |=
|
||||
(1 << (bitnum % 32));
|
||||
}
|
||||
|
Reference in New Issue
Block a user