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:
@@ -9457,14 +9457,14 @@ static void __tg3_set_rx_mode(struct net_device *dev)
|
||||
tg3_set_multi (tp, 0);
|
||||
} else {
|
||||
/* Accept one or more multicast(s). */
|
||||
struct dev_mc_list *mclist;
|
||||
struct netdev_hw_addr *ha;
|
||||
u32 mc_filter[4] = { 0, };
|
||||
u32 regidx;
|
||||
u32 bit;
|
||||
u32 crc;
|
||||
|
||||
netdev_for_each_mc_addr(mclist, dev) {
|
||||
crc = calc_crc (mclist->dmi_addr, ETH_ALEN);
|
||||
netdev_for_each_mc_addr(ha, dev) {
|
||||
crc = calc_crc(ha->addr, ETH_ALEN);
|
||||
bit = ~crc & 0x7f;
|
||||
regidx = (bit & 0x60) >> 5;
|
||||
bit &= 0x1f;
|
||||
|
Reference in New Issue
Block a user