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/sis900.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/sis900.c')
-rw-r--r-- | drivers/net/sis900.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/sis900.c b/drivers/net/sis900.c index bc7ff411aad5..6293592635be 100644 --- a/drivers/net/sis900.c +++ b/drivers/net/sis900.c | |||
@@ -2298,12 +2298,14 @@ static void set_rx_mode(struct net_device *net_dev) | |||
2298 | /* Accept Broadcast packet, destination address matchs our | 2298 | /* Accept Broadcast packet, destination address matchs our |
2299 | * MAC address, use Receive Filter to reject unwanted MCAST | 2299 | * MAC address, use Receive Filter to reject unwanted MCAST |
2300 | * packets */ | 2300 | * packets */ |
2301 | struct dev_mc_list *mclist; | 2301 | struct netdev_hw_addr *ha; |
2302 | rx_mode = RFAAB; | 2302 | rx_mode = RFAAB; |
2303 | 2303 | ||
2304 | netdev_for_each_mc_addr(mclist, net_dev) { | 2304 | netdev_for_each_mc_addr(ha, net_dev) { |
2305 | unsigned int bit_nr = | 2305 | unsigned int bit_nr; |
2306 | sis900_mcast_bitnr(mclist->dmi_addr, sis_priv->chipset_rev); | 2306 | |
2307 | bit_nr = sis900_mcast_bitnr(ha->addr, | ||
2308 | sis_priv->chipset_rev); | ||
2307 | mc_filter[bit_nr >> 4] |= (1 << (bit_nr & 0xf)); | 2309 | mc_filter[bit_nr >> 4] |= (1 << (bit_nr & 0xf)); |
2308 | } | 2310 | } |
2309 | } | 2311 | } |