]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-constify-dev_addr-passing-for-protocols'
authorJakub Kicinski <kuba@kernel.org>
Wed, 13 Oct 2021 16:40:49 +0000 (09:40 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Oct 2021 16:40:49 +0000 (09:40 -0700)
commit9adb7d55bd894d3dfdbbca096a8a9b5778cdbd97
tree7b94b4e0893cc2b5cac3db4eb11e9dedfdcc6e46
parent6331b539f4eff58d6656224d3e004c0f8d58cac8
parent1e9faf8cadef3f4859f7a26859b60c2f455e78ac
Merge branch 'net-constify-dev_addr-passing-for-protocols'

Jakub Kicinski says:

====================
net: constify dev_addr passing for protocols

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.

netdev->dev_addr will be made const to prevent direct writes.
This set sprinkles const across variables and arguments in protocol
code which are used to hold references to netdev->dev_addr.
====================

Link: https://lore.kernel.org/r/20211012155840.4151590-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>