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 /net/8021q/vlan.c | |
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 'net/8021q/vlan.c')
-rw-r--r-- | net/8021q/vlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index c39a5f41169c..bd33f02013ec 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c | |||
@@ -356,13 +356,13 @@ static void vlan_sync_address(struct net_device *dev, | |||
356 | * the new address */ | 356 | * the new address */ |
357 | if (compare_ether_addr(vlandev->dev_addr, vlan->real_dev_addr) && | 357 | if (compare_ether_addr(vlandev->dev_addr, vlan->real_dev_addr) && |
358 | !compare_ether_addr(vlandev->dev_addr, dev->dev_addr)) | 358 | !compare_ether_addr(vlandev->dev_addr, dev->dev_addr)) |
359 | dev_unicast_delete(dev, vlandev->dev_addr); | 359 | dev_uc_del(dev, vlandev->dev_addr); |
360 | 360 | ||
361 | /* vlan address was equal to the old address and is different from | 361 | /* vlan address was equal to the old address and is different from |
362 | * the new address */ | 362 | * the new address */ |
363 | if (!compare_ether_addr(vlandev->dev_addr, vlan->real_dev_addr) && | 363 | if (!compare_ether_addr(vlandev->dev_addr, vlan->real_dev_addr) && |
364 | compare_ether_addr(vlandev->dev_addr, dev->dev_addr)) | 364 | compare_ether_addr(vlandev->dev_addr, dev->dev_addr)) |
365 | dev_unicast_add(dev, vlandev->dev_addr); | 365 | dev_uc_add(dev, vlandev->dev_addr); |
366 | 366 | ||
367 | memcpy(vlan->real_dev_addr, dev->dev_addr, ETH_ALEN); | 367 | memcpy(vlan->real_dev_addr, dev->dev_addr, ETH_ALEN); |
368 | } | 368 | } |