WSL2-Linux-Kernel/net/bluetooth/bnep
Jakub Kicinski 08c181f052 bluetooth: use eth_hw_addr_set()
Commit 406f42fa0d ("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.

Convert bluetooth from memcpy(... ETH_ADDR) to eth_hw_addr_set():

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

Reviewed-by: Marcel Holtmann <marcel@holtmann.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-10-25 11:01:24 -07:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
bnep.h Bluetooth: Replace zero-length array with flexible-array member 2020-02-28 08:30:02 +01:00
core.c bluetooth: use eth_hw_addr_set() 2021-10-25 11:01:24 -07:00
netdev.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
sock.c net: make ->{get,set}sockopt in proto_ops optional 2020-07-19 18:16:41 -07:00