diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-02-21 16:04:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-21 21:25:22 +0300 |
commit | d4af4c0ad0a4d070ef756010a2a10d96ff53d73d (patch) | |
tree | 4f9797e096a042bd9c65b22b5a6bbbcdf26c7d19 | |
parent | 32cc1bb3cdac937d8199013512c79ead259e4b63 (diff) | |
download | linux-d4af4c0ad0a4d070ef756010a2a10d96ff53d73d.tar.xz |
net/hsr: use eth_hw_addr_random()
Use eth_hw_addr_random() to set a random MAC address in order to make sure
dev->addr_assign_type will be properly set to NET_ADDR_RANDOM.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/hsr/hsr_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/hsr/hsr_device.c b/net/hsr/hsr_device.c index fc65b145f6e7..c73160fb11e7 100644 --- a/net/hsr/hsr_device.c +++ b/net/hsr/hsr_device.c @@ -395,7 +395,7 @@ static struct device_type hsr_type = { void hsr_dev_setup(struct net_device *dev) { - random_ether_addr(dev->dev_addr); + eth_hw_addr_random(dev); ether_setup(dev); dev->min_mtu = 0; |