]> git.baikalelectronics.ru Git - kernel.git/commit
net: constify netdev->dev_addr
authorJakub Kicinski <kuba@kernel.org>
Fri, 19 Nov 2021 14:21:51 +0000 (06:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Nov 2021 12:25:57 +0000 (12:25 +0000)
commit7e08762fb6070fb4fd54d249dbaa670a61bfe922
tree09f686c5e7c77b11de2d99d70b5e3e4f904969a5
parent702bfe3937a3ba536cb0f501cb6d224561a1e631
net: constify netdev->dev_addr

Commit 09f15be0aa1e ("net-next: When a bond have a massive amount
of VLANs...") introduced a rbtree for faster Ethernet address look
up. We converted all users to make modifications via appropriate
helpers, make netdev->dev_addr const.

The update helpers need to upcast from the buffer to
struct netdev_hw_addr.

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