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/sb1250-mac.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/sb1250-mac.c')
-rw-r--r-- | drivers/net/sb1250-mac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sb1250-mac.c b/drivers/net/sb1250-mac.c index 9944e5d662c0..f7de960ca06f 100644 --- a/drivers/net/sb1250-mac.c +++ b/drivers/net/sb1250-mac.c | |||
@@ -2112,7 +2112,7 @@ static void sbmac_setmulti(struct sbmac_softc *sc) | |||
2112 | uint64_t reg; | 2112 | uint64_t reg; |
2113 | void __iomem *port; | 2113 | void __iomem *port; |
2114 | int idx; | 2114 | int idx; |
2115 | struct dev_mc_list *mclist; | 2115 | struct netdev_hw_addr *ha; |
2116 | struct net_device *dev = sc->sbm_dev; | 2116 | struct net_device *dev = sc->sbm_dev; |
2117 | 2117 | ||
2118 | /* | 2118 | /* |
@@ -2161,10 +2161,10 @@ static void sbmac_setmulti(struct sbmac_softc *sc) | |||
2161 | * XXX if the table overflows */ | 2161 | * XXX if the table overflows */ |
2162 | 2162 | ||
2163 | idx = 1; /* skip station address */ | 2163 | idx = 1; /* skip station address */ |
2164 | netdev_for_each_mc_addr(mclist, dev) { | 2164 | netdev_for_each_mc_addr(ha, dev) { |
2165 | if (idx == MAC_ADDR_COUNT) | 2165 | if (idx == MAC_ADDR_COUNT) |
2166 | break; | 2166 | break; |
2167 | reg = sbmac_addr2reg(mclist->dmi_addr); | 2167 | reg = sbmac_addr2reg(ha->addr); |
2168 | port = sc->sbm_base + R_MAC_ADDR_BASE+(idx * sizeof(uint64_t)); | 2168 | port = sc->sbm_base + R_MAC_ADDR_BASE+(idx * sizeof(uint64_t)); |
2169 | __raw_writeq(reg, port); | 2169 | __raw_writeq(reg, port); |
2170 | idx++; | 2170 | idx++; |