]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: use eth_hw_addr_set() instead of ether_addr_copy()
authorJakub Kicinski <kuba@kernel.org>
Tue, 19 Oct 2021 16:39:27 +0000 (09:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Oct 2021 13:29:03 +0000 (14:29 +0100)
commitafabea96d2df12c026faaa9a9457f2f2351855a0
tree42feeb2d4e8b85a94702eef93a29aa41e30fe6f6
parente297fd2ee355c2d4b40d2886f90a4eb697046adf
batman-adv: use eth_hw_addr_set() instead of ether_addr_copy()

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.

Convert batman from ether_addr_copy() to eth_hw_addr_set():

  @@
  expression dev, np;
  @@
  - ether_addr_copy(dev->dev_addr, np)
  + eth_hw_addr_set(dev, np)

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/batman-adv/soft-interface.c