projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32cc1bb
)
net/hsr: use eth_hw_addr_random()
author
Tobias Klauser
<tklauser@distanz.ch>
Tue, 21 Feb 2017 13:04:59 +0000
(14:04 +0100)
committer
David S. Miller
<davem@davemloft.net>
Tue, 21 Feb 2017 18:25:22 +0000
(13:25 -0500)
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>
net/hsr/hsr_device.c
patch
|
blob
|
history
diff --git
a/net/hsr/hsr_device.c
b/net/hsr/hsr_device.c
index fc65b145f6e71b87115aeb14dee408cef876d10b..c73160fb11e7c666f8ac8ed4103b7312ff769a58 100644
(file)
--- 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;