net: team: inherit addr_assign_type along with dev_addr
authorBjørn Mork <bjorn@mork.no>
Fri, 30 Aug 2013 16:08:48 +0000 (18:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 00:57:49 +0000 (20:57 -0400)
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>
drivers/net/team/team.c

index 9ccccd4..50e43e6 100644 (file)
@@ -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,