diff options
author | Bjørn Mork <bjorn@mork.no> | 2013-08-30 12:08:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-03 20:57:49 -0400 |
commit | 8b98604e398418b9f1a1e44ac79fbbc134818f50 (patch) | |
tree | e3fbac7d248771125a55b9f364a3b25c466987b1 /drivers/net/macvlan.c | |
parent | 2fcc8005834a390e999ede2a8933012b92db73ae (diff) |
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, | |||
823 | if (port->count) | 823 | if (port->count) |
824 | return -EINVAL; | 824 | return -EINVAL; |
825 | port->passthru = true; | 825 | port->passthru = true; |
826 | memcpy(dev->dev_addr, lowerdev->dev_addr, ETH_ALEN); | 826 | eth_hw_addr_inherit(dev, lowerdev); |
827 | } | 827 | } |
828 | 828 | ||
829 | err = netdev_upper_dev_link(lowerdev, dev); | 829 | err = netdev_upper_dev_link(lowerdev, dev); |