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
@@ -433,13 +433,13 @@ static void _sc92031_set_mar(struct net_device *dev)
|
||||
(dev->flags & IFF_ALLMULTI))
|
||||
mar0 = mar1 = 0xffffffff;
|
||||
else if (dev->flags & IFF_MULTICAST) {
|
||||
struct dev_mc_list *mc_list;
|
||||
struct netdev_hw_addr *ha;
|
||||
|
||||
netdev_for_each_mc_addr(mc_list, dev) {
|
||||
netdev_for_each_mc_addr(ha, dev) {
|
||||
u32 crc;
|
||||
unsigned bit = 0;
|
||||
|
||||
crc = ~ether_crc(ETH_ALEN, mc_list->dmi_addr);
|
||||
crc = ~ether_crc(ETH_ALEN, ha->addr);
|
||||
crc >>= 24;
|
||||
|
||||
if (crc & 0x01) bit |= 0x02;
|
||||
|
Reference in New Issue
Block a user