]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9faa85d7ca0fa0ab77cb8b88eeaa280567ca4147
tree0fc2e3a6de4dc4597c8176390a8ed024151dbe4a
parent9ae98f3a158ff0c960a830ecd9fdd3ab4159687b
net: bonding: constify and use dev_addr_set()

Commit 09f15be0aa1e ("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