summaryrefslogtreecommitdiff
path: root/net/dsa
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2013-08-30 20:08:46 +0400
committerDavid S. Miller <davem@davemloft.net>2013-09-04 04:57:49 +0400
commit2fcc8005834a390e999ede2a8933012b92db73ae (patch)
tree512b708d6c4991185650b58b02064cda1063a0ec /net/dsa
parent6b93f4a1f2f22b23a2e1e4cca1e1aecffee2193e (diff)
downloadlinux-2fcc8005834a390e999ede2a8933012b92db73ae.tar.xz
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.c2
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) {