]> 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)
commit8e70d2a8ebd2e1ad6edf63371584b92d6372f9d6
treefc737b1464f6d6faaa12c636506bc78b51208d9c
parent970de908a5de33e43fef459d3a4a746772ddcf9a
parent4c625a524d1038e9d4a9912d901d439b3f6963c6
Merge branch 'hw_addr_set'

Jakub Kicinski says:

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

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.

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>