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/ehea | |
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/ehea')
-rw-r--r-- | drivers/net/ehea/ehea_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index b004eaba3d7b..b97411aaa77c 100644 --- a/drivers/net/ehea/ehea_main.c +++ b/drivers/net/ehea/ehea_main.c | |||
@@ -1966,7 +1966,7 @@ static void ehea_add_multicast_entry(struct ehea_port *port, u8 *mc_mac_addr) | |||
1966 | static void ehea_set_multicast_list(struct net_device *dev) | 1966 | static void ehea_set_multicast_list(struct net_device *dev) |
1967 | { | 1967 | { |
1968 | struct ehea_port *port = netdev_priv(dev); | 1968 | struct ehea_port *port = netdev_priv(dev); |
1969 | struct dev_mc_list *k_mcl_entry; | 1969 | struct netdev_hw_addr *ha; |
1970 | int ret; | 1970 | int ret; |
1971 | 1971 | ||
1972 | if (dev->flags & IFF_PROMISC) { | 1972 | if (dev->flags & IFF_PROMISC) { |
@@ -1997,8 +1997,8 @@ static void ehea_set_multicast_list(struct net_device *dev) | |||
1997 | goto out; | 1997 | goto out; |
1998 | } | 1998 | } |
1999 | 1999 | ||
2000 | netdev_for_each_mc_addr(k_mcl_entry, dev) | 2000 | netdev_for_each_mc_addr(ha, dev) |
2001 | ehea_add_multicast_entry(port, k_mcl_entry->dmi_addr); | 2001 | ehea_add_multicast_entry(port, ha->addr); |
2002 | 2002 | ||
2003 | } | 2003 | } |
2004 | out: | 2004 | out: |