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/iseries_veth.c | |
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/iseries_veth.c')
-rw-r--r-- | drivers/net/iseries_veth.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/iseries_veth.c b/drivers/net/iseries_veth.c index ff015e15f5d..966de5d6952 100644 --- a/drivers/net/iseries_veth.c +++ b/drivers/net/iseries_veth.c | |||
@@ -961,15 +961,14 @@ static void veth_set_multicast_list(struct net_device *dev) | |||
961 | (netdev_mc_count(dev) > VETH_MAX_MCAST)) { | 961 | (netdev_mc_count(dev) > VETH_MAX_MCAST)) { |
962 | port->promiscuous = 1; | 962 | port->promiscuous = 1; |
963 | } else { | 963 | } else { |
964 | struct dev_mc_list *dmi = dev->mc_list; | 964 | struct dev_mc_list *dmi; |
965 | int i; | ||
966 | 965 | ||
967 | port->promiscuous = 0; | 966 | port->promiscuous = 0; |
968 | 967 | ||
969 | /* Update table */ | 968 | /* Update table */ |
970 | port->num_mcast = 0; | 969 | port->num_mcast = 0; |
971 | 970 | ||
972 | for (i = 0; i < netdev_mc_count(dev); i++) { | 971 | netdev_for_each_mc_addr(dmi, dev) { |
973 | u8 *addr = dmi->dmi_addr; | 972 | u8 *addr = dmi->dmi_addr; |
974 | u64 xaddr = 0; | 973 | u64 xaddr = 0; |
975 | 974 | ||
@@ -978,7 +977,6 @@ static void veth_set_multicast_list(struct net_device *dev) | |||
978 | port->mcast_addr[port->num_mcast] = xaddr; | 977 | port->mcast_addr[port->num_mcast] = xaddr; |
979 | port->num_mcast++; | 978 | port->num_mcast++; |
980 | } | 979 | } |
981 | dmi = dmi->next; | ||
982 | } | 980 | } |
983 | } | 981 | } |
984 | 982 | ||