diff options
author | Bjørn Mork <bjorn@mork.no> | 2013-08-30 18:08:48 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-03 20:57:49 -0400 |
commit | 93af735736d161f4383cda2de44a0d7c2fd2ad45 (patch) | |
tree | c6ad4aa5d801ad0628dbfaec875ad779049d3cf1 /drivers/net/team/team.c | |
parent | 8b98604e398418b9f1a1e44ac79fbbc134818f50 (diff) |
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: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/team/team.c')
-rw-r--r-- | drivers/net/team/team.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index 9ccccd40c41..50e43e64d51 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c @@ -1974,7 +1974,7 @@ static void team_setup_by_port(struct net_device *dev, dev->addr_len = port_dev->addr_len; dev->mtu = port_dev->mtu; 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, |