diff options
author | Bjørn Mork <bjorn@mork.no> | 2013-08-30 18:08:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-04 02:57:49 +0200 |
commit | 2fcc8005834a390e999ede2a8933012b92db73ae (patch) | |
tree | 512b708d6c4991185650b58b02064cda1063a0ec /net/dsa | |
parent | net: vlan: inherit addr_assign_type along with dev_addr (diff) | |
download | linux-2fcc8005834a390e999ede2a8933012b92db73ae.tar.xz linux-2fcc8005834a390e999ede2a8933012b92db73ae.zip |
net: dsa: inherit addr_assign_type along with dev_addr
A device inheriting a random or set address should reflect this in
its addr_assign_type.
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/slave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 6ebd8fbd9285..29d684ebca6a 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -347,7 +347,7 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent, slave_dev->features = master->vlan_features; SET_ETHTOOL_OPS(slave_dev, &dsa_slave_ethtool_ops); - memcpy(slave_dev->dev_addr, master->dev_addr, ETH_ALEN); + eth_hw_addr_inherit(slave_dev, master); slave_dev->tx_queue_len = 0; switch (ds->dst->tag_protocol) { |