Explorar o código

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>
Tobias Klauser %!s(int64=8) %!d(string=hai) anos
pai
achega
d4af4c0ad0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/hsr/hsr_device.c

+ 1 - 1
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;