OSDN Git Service

net: bonding: constify and use dev_addr_set()
authorJakub Kicinski <kuba@kernel.org>
Fri, 22 Oct 2021 23:20:59 +0000 (16:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Oct 2021 12:59:44 +0000 (13:59 +0100)
commit6f238100d098508e2162958dfee2769e899301c0
tree0fc2e3a6de4dc4597c8176390a8ed024151dbe4a
parent86466cbed1735969606094b87c41412b9c78f222
net: bonding: constify and use dev_addr_set()

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 go through appropriate helpers.

Make sure local references to netdev->dev_addr are constant.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c