]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet: alteon: use eth_hw_addr_set()
authorJakub Kicinski <kuba@kernel.org>
Fri, 15 Oct 2021 22:16:43 +0000 (15:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Oct 2021 07:53:46 +0000 (08:53 +0100)
commit0fdeb9d6e0691628f541637d2fedd7e2577b5b16
tree04b48573e831676db7c060f94ecf5c8a8bcf2c91
parentd0d2ad34e88a72a5836c4e42ae3da863eaea0aaa
ethernet: alteon: use eth_hw_addr_set()

Commit 0e59850f1b49 ("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.

Break the address apart 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/alteon/acenic.c