On Tue, Oct 05, 2021 at 08:53:20AM -0700, Jakub Kicinski wrote:
Commit 406f42fa0d3c ("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.
There is a handful of drivers which pass netdev->dev_addr as
the destination buffer to device_get_mac_address(). Add a helper
which takes a dev pointer instead, so it can call an appropriate
helper.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
drivers/base/property.c | 20 ++++++++++++++++++++
include/linux/property.h | 2 ++
2 files changed, 22 insertions(+)
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>