aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/b44.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-04-01 17:22:57 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-03 17:22:15 -0400
commit22bedad3ce112d5ca1eaf043d4990fa2ed698c87 (patch)
treeb6fba5688d48b1396f01d13ee53610dea7749c15 /drivers/net/b44.c
parenta748ee2426817a95b1f03012d8f339c45c722ae1 (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/b44.c')
-rw-r--r--drivers/net/b44.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c
index 332c60356285..b2c5fd7b63af 100644
--- a/drivers/net/b44.c
+++ b/drivers/net/b44.c
@@ -1680,15 +1680,15 @@ static struct net_device_stats *b44_get_stats(struct net_device *dev)
1680 1680
1681static int __b44_load_mcast(struct b44 *bp, struct net_device *dev) 1681static int __b44_load_mcast(struct b44 *bp, struct net_device *dev)
1682{ 1682{
1683 struct dev_mc_list *mclist; 1683 struct netdev_hw_addr *ha;
1684 int i, num_ents; 1684 int i, num_ents;
1685 1685
1686 num_ents = min_t(int, netdev_mc_count(dev), B44_MCAST_TABLE_SIZE); 1686 num_ents = min_t(int, netdev_mc_count(dev), B44_MCAST_TABLE_SIZE);
1687 i = 0; 1687 i = 0;
1688 netdev_for_each_mc_addr(mclist, dev) { 1688 netdev_for_each_mc_addr(ha, dev) {
1689 if (i == num_ents) 1689 if (i == num_ents)
1690 break; 1690 break;
1691 __b44_cam_write(bp, mclist->dmi_addr, i++ + 1); 1691 __b44_cam_write(bp, ha->addr, i++ + 1);
1692 } 1692 }
1693 return i+1; 1693 return i+1;
1694} 1694}