diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-04-01 17:22:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-03 17:22:11 -0400 |
commit | a748ee2426817a95b1f03012d8f339c45c722ae1 (patch) | |
tree | 37cb9f8836f05bd49b86eb52ddeff3e98185cc58 /drivers/net | |
parent | 9fc4178b149ae8b0a2fbf83f2f4df3cf8789177b (diff) |
net: move address list functions to a separate file
+little renaming of unicast functions to be smooth with multicast ones
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 2 | ||||
-rw-r--r-- | drivers/net/macvlan.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index f8ab60b914c4..d6ae63b2cf00 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -1491,7 +1491,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev) | |||
1491 | } | 1491 | } |
1492 | 1492 | ||
1493 | /* Flush unicast and multicast addresses */ | 1493 | /* Flush unicast and multicast addresses */ |
1494 | dev_unicast_flush(bond_dev); | 1494 | dev_uc_flush(bond_dev); |
1495 | dev_addr_discard(bond_dev); | 1495 | dev_addr_discard(bond_dev); |
1496 | 1496 | ||
1497 | if (slave_dev->type != ARPHRD_ETHER) | 1497 | if (slave_dev->type != ARPHRD_ETHER) |
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 445e73c343ba..9a939d828b47 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c | |||
@@ -282,7 +282,7 @@ static int macvlan_open(struct net_device *dev) | |||
282 | if (macvlan_addr_busy(vlan->port, dev->dev_addr)) | 282 | if (macvlan_addr_busy(vlan->port, dev->dev_addr)) |
283 | goto out; | 283 | goto out; |
284 | 284 | ||
285 | err = dev_unicast_add(lowerdev, dev->dev_addr); | 285 | err = dev_uc_add(lowerdev, dev->dev_addr); |
286 | if (err < 0) | 286 | if (err < 0) |
287 | goto out; | 287 | goto out; |
288 | if (dev->flags & IFF_ALLMULTI) { | 288 | if (dev->flags & IFF_ALLMULTI) { |
@@ -294,7 +294,7 @@ static int macvlan_open(struct net_device *dev) | |||
294 | return 0; | 294 | return 0; |
295 | 295 | ||
296 | del_unicast: | 296 | del_unicast: |
297 | dev_unicast_delete(lowerdev, dev->dev_addr); | 297 | dev_uc_del(lowerdev, dev->dev_addr); |
298 | out: | 298 | out: |
299 | return err; | 299 | return err; |
300 | } | 300 | } |
@@ -308,7 +308,7 @@ static int macvlan_stop(struct net_device *dev) | |||
308 | if (dev->flags & IFF_ALLMULTI) | 308 | if (dev->flags & IFF_ALLMULTI) |
309 | dev_set_allmulti(lowerdev, -1); | 309 | dev_set_allmulti(lowerdev, -1); |
310 | 310 | ||
311 | dev_unicast_delete(lowerdev, dev->dev_addr); | 311 | dev_uc_del(lowerdev, dev->dev_addr); |
312 | 312 | ||
313 | macvlan_hash_del(vlan); | 313 | macvlan_hash_del(vlan); |
314 | return 0; | 314 | return 0; |
@@ -332,11 +332,11 @@ static int macvlan_set_mac_address(struct net_device *dev, void *p) | |||
332 | if (macvlan_addr_busy(vlan->port, addr->sa_data)) | 332 | if (macvlan_addr_busy(vlan->port, addr->sa_data)) |
333 | return -EBUSY; | 333 | return -EBUSY; |
334 | 334 | ||
335 | err = dev_unicast_add(lowerdev, addr->sa_data); | 335 | err = dev_uc_add(lowerdev, addr->sa_data); |
336 | if (err) | 336 | if (err) |
337 | return err; | 337 | return err; |
338 | 338 | ||
339 | dev_unicast_delete(lowerdev, dev->dev_addr); | 339 | dev_uc_del(lowerdev, dev->dev_addr); |
340 | 340 | ||
341 | macvlan_hash_change_addr(vlan, addr->sa_data); | 341 | macvlan_hash_change_addr(vlan, addr->sa_data); |
342 | } | 342 | } |