diff options
author | Tobias Klauser <[email protected]> | 2017-02-16 15:11:19 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-02-17 13:03:39 -0500 |
commit | 6850f8b50928463213532d7812b74161d31d3cbd (patch) | |
tree | 4d78938d07ca136118438d39f4870f9092e3217c /lib/netdev-notifier-error-inject.c | |
parent | 3105dfb2a99f52c67cd40ec092373081f022ec28 (diff) |
net: bgmac: store MAC address directly in netdev->dev_addr
After commit 34a5102c3235 ("net: bgmac: allocate struct bgmac just once
& don't copy it") the mac_addr member of struct bgmac is no longer
necessary to pass the MAC address to bgmac_enet_probe(). Instead it can
directly be stored in netdev->dev_addr.
Also use eth_hw_addr_random() instead of eth_random_addr() in case a
random MAC is nedded. This will make sure netdev->addr_assign_type will
be properly set.
Signed-off-by: Tobias Klauser <[email protected]>
Acked-by: Jon Mason <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions