diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-04-01 17:22:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-03 17:22:15 -0400 |
commit | 22bedad3ce112d5ca1eaf043d4990fa2ed698c87 (patch) | |
tree | b6fba5688d48b1396f01d13ee53610dea7749c15 /drivers/net/atp.c | |
parent | a748ee2426817a95b1f03012d8f339c45c722ae1 (diff) |
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>
Diffstat (limited to 'drivers/net/atp.c')
-rw-r--r-- | drivers/net/atp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/atp.c b/drivers/net/atp.c index 6ad16205dc17..0d730c8329d4 100644 --- a/drivers/net/atp.c +++ b/drivers/net/atp.c | |||
@@ -883,11 +883,11 @@ static void set_rx_mode_8012(struct net_device *dev) | |||
883 | memset(mc_filter, 0xff, sizeof(mc_filter)); | 883 | memset(mc_filter, 0xff, sizeof(mc_filter)); |
884 | new_mode = CMR2h_Normal; | 884 | new_mode = CMR2h_Normal; |
885 | } else { | 885 | } else { |
886 | struct dev_mc_list *mclist; | 886 | struct netdev_hw_addr *ha; |
887 | 887 | ||
888 | memset(mc_filter, 0, sizeof(mc_filter)); | 888 | memset(mc_filter, 0, sizeof(mc_filter)); |
889 | netdev_for_each_mc_addr(mclist, dev) { | 889 | netdev_for_each_mc_addr(ha, dev) { |
890 | int filterbit = ether_crc_le(ETH_ALEN, mclist->dmi_addr) & 0x3f; | 890 | int filterbit = ether_crc_le(ETH_ALEN, ha->addr) & 0x3f; |
891 | mc_filter[filterbit >> 5] |= 1 << (filterbit & 31); | 891 | mc_filter[filterbit >> 5] |= 1 << (filterbit & 31); |
892 | } | 892 | } |
893 | new_mode = CMR2h_Normal; | 893 | new_mode = CMR2h_Normal; |