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/sungem.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/sungem.c')
-rw-r--r-- | drivers/net/sungem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c index 70196bc5fe61..58a27541ae39 100644 --- a/drivers/net/sungem.c +++ b/drivers/net/sungem.c | |||
@@ -1846,12 +1846,12 @@ static u32 gem_setup_multicast(struct gem *gp) | |||
1846 | } else { | 1846 | } else { |
1847 | u16 hash_table[16]; | 1847 | u16 hash_table[16]; |
1848 | u32 crc; | 1848 | u32 crc; |
1849 | struct dev_mc_list *dmi; | 1849 | struct netdev_hw_addr *ha; |
1850 | int i; | 1850 | int i; |
1851 | 1851 | ||
1852 | memset(hash_table, 0, sizeof(hash_table)); | 1852 | memset(hash_table, 0, sizeof(hash_table)); |
1853 | netdev_for_each_mc_addr(dmi, gp->dev) { | 1853 | netdev_for_each_mc_addr(ha, gp->dev) { |
1854 | char *addrs = dmi->dmi_addr; | 1854 | char *addrs = ha->addr; |
1855 | 1855 | ||
1856 | if (!(*addrs & 1)) | 1856 | if (!(*addrs & 1)) |
1857 | continue; | 1857 | continue; |