Skip to content

Commit 2fcc800

Browse files
bmorkdavem330
authored andcommitted
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>
1 parent 6b93f4a commit 2fcc800

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/dsa/slave.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent,
347347

348348
slave_dev->features = master->vlan_features;
349349
SET_ETHTOOL_OPS(slave_dev, &dsa_slave_ethtool_ops);
350-
memcpy(slave_dev->dev_addr, master->dev_addr, ETH_ALEN);
350+
eth_hw_addr_inherit(slave_dev, master);
351351
slave_dev->tx_queue_len = 0;
352352

353353
switch (ds->dst->tag_protocol) {

0 commit comments

Comments
 (0)