diff options
author | Bjørn Mork <bjorn@mork.no> | 2013-08-30 18:08:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-04 02:57:49 +0200 |
commit | 8b98604e398418b9f1a1e44ac79fbbc134818f50 (patch) | |
tree | e3fbac7d248771125a55b9f364a3b25c466987b1 /drivers/net/macvlan.c | |
parent | net: dsa: inherit addr_assign_type along with dev_addr (diff) | |
download | linux-8b98604e398418b9f1a1e44ac79fbbc134818f50.tar.xz linux-8b98604e398418b9f1a1e44ac79fbbc134818f50.zip |
net: macvlan: inherit addr_assign_type along with dev_addr
A device inheriting a random or set address should reflect this in
its addr_assign_type.
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r-- | drivers/net/macvlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 201ef1712ef5..64dfaa303dcc 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -823,7 +823,7 @@ int macvlan_common_newlink(struct net *src_net, struct net_device *dev, if (port->count) return -EINVAL; port->passthru = true; - memcpy(dev->dev_addr, lowerdev->dev_addr, ETH_ALEN); + eth_hw_addr_inherit(dev, lowerdev); } err = netdev_upper_dev_link(lowerdev, dev); |