summaryrefslogtreecommitdiffstats
path: root/net/8021q/vlan.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-01-20 09:52:14 -0800
committerDavid S. Miller <davem@davemloft.net>2014-01-21 18:13:04 -0800
commit07fc67befd2e843da8ad01785d559d9c257d7fd4 (patch)
tree4bc5536df080fdf510273e2c1ec92569d6148f3e /net/8021q/vlan.c
parent70fccb7e34f029755a5371b6b786f8425c2f27a1 (diff)
downloadtalos-obmc-linux-07fc67befd2e843da8ad01785d559d9c257d7fd4.tar.gz
talos-obmc-linux-07fc67befd2e843da8ad01785d559d9c257d7fd4.zip
8021q: Use ether_addr_copy
Use ether_addr_copy instead of memcpy(a, b, ETH_ALEN) to save some cycles on arm and powerpc. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlan.c')
-rw-r--r--net/8021q/vlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
index b3d17d1c49c3..ec9909935fb6 100644
--- a/net/8021q/vlan.c
+++ b/net/8021q/vlan.c
@@ -301,7 +301,7 @@ static void vlan_sync_address(struct net_device *dev,
!ether_addr_equal(vlandev->dev_addr, dev->dev_addr))
dev_uc_add(dev, vlandev->dev_addr);
- memcpy(vlan->real_dev_addr, dev->dev_addr, ETH_ALEN);
+ ether_addr_copy(vlan->real_dev_addr, dev->dev_addr);
}
static void vlan_transfer_features(struct net_device *dev,
OpenPOWER on IntegriCloud