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)
commitadeef3e32146a8d2a73c399dc6f5d76a449131b1
tree09f686c5e7c77b11de2d99d70b5e3e4f904969a5
parentc9646a18033ea2c3a6d27c951dedf4f60a290bf9
net: constify netdev->dev_addr

Commit 406f42fa0d3c ("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