]> git.baikalelectronics.ru Git - kernel.git/commit
net: create netdev->dev_addr assignment helpers
authorJakub Kicinski <kuba@kernel.org>
Thu, 2 Sep 2021 18:10:37 +0000 (11:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Sep 2021 19:58:50 +0000 (20:58 +0100)
commit598c331b2a816a8feead32a4884c2cec4ba1ee3f
tree83713de2a9489585e829b19358f2a351faa07cbf
parentd1571eba3a51531cfc85f9b2f9a917a7406f47d4
net: create netdev->dev_addr assignment helpers

Recent work on converting address list to a tree made it obvious
we need an abstraction around writing netdev->dev_addr. Without
such abstraction updating the main device address is invisible
to the core.

Introduce a number of helpers which for now just wrap memcpy()
but in the future can make necessary changes to the address
tree.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/etherdevice.h
include/linux/netdevice.h