提交 d4af4c0a 编写于 作者: T Tobias Klauser 提交者: David S. Miller

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: NTobias Klauser <tklauser@distanz.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 32cc1bb3
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册