]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'hw_addr_set'
authorDavid S. Miller <davem@davemloft.net>
Sat, 2 Oct 2021 13:18:26 +0000 (14:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Oct 2021 13:18:26 +0000 (14:18 +0100)
commit6551b262b215952da07c1712f01a4ec6b885e5ce
treefc737b1464f6d6faaa12c636506bc78b51208d9c
parent6789b77026a820721f16c8dd380ee3ae6835d961
parent3b457f35db496512a8d280b71ba784302f6849d7
Merge branch 'hw_addr_set'

Jakub Kicinski says:

====================
Use netdev->dev_addr write helpers (part 1)

Commit 09f15be0aa1e ("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.

This is the first installment of predictably tedious conversion.
It tackles:

  memcpy(netdev->dev_addr, something, ETH_ADDR)

and

  ether_addr_copy(netdev->dev_addr, something)

replacing both with eth_hw_addr_set().

The first 7 patches are done entirely by sparse.
Next 4 were semi-manual because the sparse conversion
resulted in errors.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>