aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netfront.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2021-10-27 15:20:12 +0000
committerJakub Kicinski <[email protected]>2021-10-28 14:47:30 +0000
commitf2edaa4ad5d51371709196f2c258fbe875962dee (patch)
treec512d6a3a8bc075c1167258e08046ef5b9fb88fd /drivers/net/xen-netfront.c
parentdevlink: Simplify internal devlink params implementation (diff)
downloadkernel-f2edaa4ad5d51371709196f2c258fbe875962dee.tar.gz
kernel-f2edaa4ad5d51371709196f2c258fbe875962dee.zip
net: virtio: use eth_hw_addr_set()
Commit 406f42fa0d3c ("net-next: When a bond have a massive amount of VLANs...") introduced a rbtree for faster Ethernet address look up. To maintain netdev->dev_addr in this tree we need to make all the writes to it go through appropriate helpers. Even though the current code uses dev->addr_len the we can switch to eth_hw_addr_set() instead of dev_addr_set(). The netdev is always allocated by alloc_etherdev_mq() and there are at least two places which assume Ethernet address: - the line below calling eth_hw_addr_random() - virtnet_set_mac_address() -> eth_commit_mac_addr_change() Acked-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions