Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ray_cs: 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 got through appropriate helpers.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211018235021.1279697-14-kuba@kernel.org

authored by

Jakub Kicinski and committed by
Kalle Valo
6dedb274 0341ae70

+1 -1
+1 -1
drivers/net/wireless/ray_cs.c
··· 791 791 #endif /* RAY_IMMEDIATE_INIT */ 792 792 793 793 /* copy mac and broadcast addresses to linux device */ 794 - memcpy(dev->dev_addr, &local->sparm.b4.a_mac_addr, ADDRLEN); 794 + eth_hw_addr_set(dev, local->sparm.b4.a_mac_addr); 795 795 eth_broadcast_addr(dev->broadcast); 796 796 797 797 dev_dbg(&link->dev, "ray_dev_init ending\n");