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
@@ -1383,13 +1383,13 @@ static void smsc911x_set_multicast_list(struct net_device *dev)
|
||||
/* Enabling specific multicast addresses */
|
||||
unsigned int hash_high = 0;
|
||||
unsigned int hash_low = 0;
|
||||
struct dev_mc_list *mc_list;
|
||||
struct netdev_hw_addr *ha;
|
||||
|
||||
pdata->set_bits_mask = MAC_CR_HPFILT_;
|
||||
pdata->clear_bits_mask = (MAC_CR_PRMS_ | MAC_CR_MCPAS_);
|
||||
|
||||
netdev_for_each_mc_addr(mc_list, dev) {
|
||||
unsigned int bitnum = smsc911x_hash(mc_list->dmi_addr);
|
||||
netdev_for_each_mc_addr(ha, dev) {
|
||||
unsigned int bitnum = smsc911x_hash(ha->addr);
|
||||
unsigned int mask = 0x01 << (bitnum & 0x1F);
|
||||
|
||||
if (bitnum & 0x20)
|
||||
|
Reference in New Issue
Block a user