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/ibmveth.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/ibmveth.c')
-rw-r--r-- | drivers/net/ibmveth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c index 41b9c0efcbdd..f2b937966950 100644 --- a/drivers/net/ibmveth.c +++ b/drivers/net/ibmveth.c | |||
@@ -1072,8 +1072,7 @@ static void ibmveth_set_multicast_list(struct net_device *netdev) | |||
1072 | ibmveth_error_printk("h_multicast_ctrl rc=%ld when entering promisc mode\n", lpar_rc); | 1072 | ibmveth_error_printk("h_multicast_ctrl rc=%ld when entering promisc mode\n", lpar_rc); |
1073 | } | 1073 | } |
1074 | } else { | 1074 | } else { |
1075 | struct dev_mc_list *mclist = netdev->mc_list; | 1075 | struct dev_mc_list *mclist; |
1076 | int i; | ||
1077 | /* clear the filter table & disable filtering */ | 1076 | /* clear the filter table & disable filtering */ |
1078 | lpar_rc = h_multicast_ctrl(adapter->vdev->unit_address, | 1077 | lpar_rc = h_multicast_ctrl(adapter->vdev->unit_address, |
1079 | IbmVethMcastEnableRecv | | 1078 | IbmVethMcastEnableRecv | |
@@ -1084,7 +1083,7 @@ static void ibmveth_set_multicast_list(struct net_device *netdev) | |||
1084 | ibmveth_error_printk("h_multicast_ctrl rc=%ld when attempting to clear filter table\n", lpar_rc); | 1083 | ibmveth_error_printk("h_multicast_ctrl rc=%ld when attempting to clear filter table\n", lpar_rc); |
1085 | } | 1084 | } |
1086 | /* add the addresses to the filter table */ | 1085 | /* add the addresses to the filter table */ |
1087 | for(i = 0; i < netdev_mc_count(netdev); ++i, mclist = mclist->next) { | 1086 | netdev_for_each_mc_addr(mclist, netdev) { |
1088 | // add the multicast address to the filter table | 1087 | // add the multicast address to the filter table |
1089 | unsigned long mcast_addr = 0; | 1088 | unsigned long mcast_addr = 0; |
1090 | memcpy(((char *)&mcast_addr)+2, mclist->dmi_addr, 6); | 1089 | memcpy(((char *)&mcast_addr)+2, mclist->dmi_addr, 6); |