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/s390/net | |
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/s390/net')
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index 7576ad5a833a..945f3e0a9f06 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c | |||
@@ -607,7 +607,6 @@ static int qeth_l2_set_mac_address(struct net_device *dev, void *p) | |||
607 | static void qeth_l2_set_multicast_list(struct net_device *dev) | 607 | static void qeth_l2_set_multicast_list(struct net_device *dev) |
608 | { | 608 | { |
609 | struct qeth_card *card = dev->ml_priv; | 609 | struct qeth_card *card = dev->ml_priv; |
610 | struct dev_addr_list *dm; | ||
611 | struct netdev_hw_addr *ha; | 610 | struct netdev_hw_addr *ha; |
612 | 611 | ||
613 | if (card->info.type == QETH_CARD_TYPE_OSN) | 612 | if (card->info.type == QETH_CARD_TYPE_OSN) |
@@ -619,8 +618,8 @@ static void qeth_l2_set_multicast_list(struct net_device *dev) | |||
619 | return; | 618 | return; |
620 | qeth_l2_del_all_mc(card); | 619 | qeth_l2_del_all_mc(card); |
621 | spin_lock_bh(&card->mclock); | 620 | spin_lock_bh(&card->mclock); |
622 | netdev_for_each_mc_addr(dm, dev) | 621 | netdev_for_each_mc_addr(ha, dev) |
623 | qeth_l2_add_mc(card, dm->da_addr, 0); | 622 | qeth_l2_add_mc(card, ha->addr, 0); |
624 | 623 | ||
625 | netdev_for_each_uc_addr(ha, dev) | 624 | netdev_for_each_uc_addr(ha, dev) |
626 | qeth_l2_add_mc(card, ha->addr, 1); | 625 | qeth_l2_add_mc(card, ha->addr, 1); |