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-03 20:57:49 -0400 |
commit | 2fcc8005834a390e999ede2a8933012b92db73ae (patch) | |
tree | 512b708d6c4991185650b58b02064cda1063a0ec /net/dsa/slave.c | |
parent | 6b93f4a1f2f22b23a2e1e4cca1e1aecffee2193e (diff) |
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/slave.c')
-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) { |