diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-02-22 04:22:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-22 18:45:52 -0500 |
commit | 48e2f183cb1709600012265a2e723f45a350d5fe (patch) | |
tree | 608368bda6f159342c307deca3b03998d25434c8 /drivers/net/igbvf | |
parent | 7a81e9f3ca712db82344ea3ab2a5879241f59c48 (diff) |
net: convert multiple drivers to use netdev_for_each_mc_addr, part4
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igbvf')
-rw-r--r-- | drivers/net/igbvf/netdev.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c index 6029c400f2be..a77afd8a14bb 100644 --- a/drivers/net/igbvf/netdev.c +++ b/drivers/net/igbvf/netdev.c | |||
@@ -1413,15 +1413,9 @@ static void igbvf_set_multi(struct net_device *netdev) | |||
1413 | } | 1413 | } |
1414 | 1414 | ||
1415 | /* prepare a packed array of only addresses. */ | 1415 | /* prepare a packed array of only addresses. */ |
1416 | mc_ptr = netdev->mc_list; | 1416 | i = 0; |
1417 | 1417 | netdev_for_each_mc_addr(mc_ptr, netdev) | |
1418 | for (i = 0; i < netdev_mc_count(netdev); i++) { | 1418 | memcpy(mta_list + (i++ * ETH_ALEN), mc_ptr->dmi_addr, ETH_ALEN); |
1419 | if (!mc_ptr) | ||
1420 | break; | ||
1421 | memcpy(mta_list + (i*ETH_ALEN), mc_ptr->dmi_addr, | ||
1422 | ETH_ALEN); | ||
1423 | mc_ptr = mc_ptr->next; | ||
1424 | } | ||
1425 | 1419 | ||
1426 | hw->mac.ops.update_mc_addr_list(hw, mta_list, i, 0, 0); | 1420 | hw->mac.ops.update_mc_addr_list(hw, mta_list, i, 0, 0); |
1427 | kfree(mta_list); | 1421 | kfree(mta_list); |