ethernet: netxen: use eth_hw_addr_set()
authorJakub Kicinski <kuba@kernel.org>
Mon, 18 Oct 2021 14:29:24 +0000 (07:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Oct 2021 11:41:47 +0000 (12:41 +0100)
commit88e102e8777eccb569382d0cd289e88f0c0c6578
treeddd655211b556bcd035cff92976a9c2c83d810a3
parentb814d328692356a1f1cf1e8e1ee6de99bf15f4e5
ethernet: netxen: 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.

Invert 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/qlogic/netxen/netxen_nic_main.c