]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet: sis900: use eth_hw_addr_set()
authorJakub Kicinski <kuba@kernel.org>
Mon, 18 Oct 2021 14:29:30 +0000 (07:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Oct 2021 11:41:48 +0000 (12:41 +0100)
commit4d5675cd90757d51cd448c78472fef9817144778
tree21bb2ffcbc5c6c1ef4999604dcfea7b2b0eeb742
parentefd54a5de9b77b668ea979cf19b7df6703a88495
ethernet: sis900: 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.

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/sis/sis900.c