Commit 93af7357 authored by Bjørn Mork's avatar Bjørn Mork Committed by David S. Miller

net: team: 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: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8b98604e
...@@ -1974,7 +1974,7 @@ static void team_setup_by_port(struct net_device *dev, ...@@ -1974,7 +1974,7 @@ static void team_setup_by_port(struct net_device *dev,
dev->addr_len = port_dev->addr_len; dev->addr_len = port_dev->addr_len;
dev->mtu = port_dev->mtu; dev->mtu = port_dev->mtu;
memcpy(dev->broadcast, port_dev->broadcast, port_dev->addr_len); memcpy(dev->broadcast, port_dev->broadcast, port_dev->addr_len);
memcpy(dev->dev_addr, port_dev->dev_addr, port_dev->addr_len); eth_hw_addr_inherit(dev, port_dev);
} }
static int team_dev_type_check_change(struct net_device *dev, static int team_dev_type_check_change(struct net_device *dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment