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/ixgbe | |
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/ixgbe')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ixgbe/ixgbe_common.c b/drivers/net/ixgbe/ixgbe_common.c index 4d1c3a429457..6eb5814ca7da 100644 --- a/drivers/net/ixgbe/ixgbe_common.c +++ b/drivers/net/ixgbe/ixgbe_common.c | |||
@@ -1494,7 +1494,7 @@ static void ixgbe_set_mta(struct ixgbe_hw *hw, u8 *mc_addr) | |||
1494 | s32 ixgbe_update_mc_addr_list_generic(struct ixgbe_hw *hw, | 1494 | s32 ixgbe_update_mc_addr_list_generic(struct ixgbe_hw *hw, |
1495 | struct net_device *netdev) | 1495 | struct net_device *netdev) |
1496 | { | 1496 | { |
1497 | struct dev_addr_list *dmi; | 1497 | struct netdev_hw_addr *ha; |
1498 | u32 i; | 1498 | u32 i; |
1499 | 1499 | ||
1500 | /* | 1500 | /* |
@@ -1510,9 +1510,9 @@ s32 ixgbe_update_mc_addr_list_generic(struct ixgbe_hw *hw, | |||
1510 | IXGBE_WRITE_REG(hw, IXGBE_MTA(i), 0); | 1510 | IXGBE_WRITE_REG(hw, IXGBE_MTA(i), 0); |
1511 | 1511 | ||
1512 | /* Add the new addresses */ | 1512 | /* Add the new addresses */ |
1513 | netdev_for_each_mc_addr(dmi, netdev) { | 1513 | netdev_for_each_mc_addr(ha, netdev) { |
1514 | hw_dbg(hw, " Adding the multicast addresses:\n"); | 1514 | hw_dbg(hw, " Adding the multicast addresses:\n"); |
1515 | ixgbe_set_mta(hw, dmi->dmi_addr); | 1515 | ixgbe_set_mta(hw, ha->addr); |
1516 | } | 1516 | } |
1517 | 1517 | ||
1518 | /* Enable mta */ | 1518 | /* Enable mta */ |