]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ethernet: sxgbe: use eth_hw_addr_set()
authorJakub Kicinski <kuba@kernel.org>
Mon, 18 Oct 2021 14:29:28 +0000 (07:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Oct 2021 11:41:48 +0000 (12:41 +0100)
commit15fa05bf41abc3703b0c48d8adc9d57d8411f726
treeb99123c0c0338a70b8d0384ada16b4d04c640dfe
parent298b0e0c5fec65081e308a4aa2f16ec8a91070e1
ethernet: sxgbe: 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.

Read the address into an array on the stack, then call
eth_hw_addr_set().

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c