linux/drivers/net/ethernet/chelsio/cxgb4vf
Jakub Kicinski a05e4c0af4 ethernet: use eth_hw_addr_set() for dev->addr_len cases
Convert all Ethernet drivers from memcpy(... dev->addr_len)
to eth_hw_addr_set():

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

In theory addr_len may not be ETH_ALEN, but we don't expect
non-Ethernet devices to live under this directory, and only
the following cases of setting addr_len exist:
 - cxgb4 for mgmt device,
and the drivers which set it to ETH_ALEN: s2io, mlx4, vxge.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-10-05 13:16:48 +01:00
..
adapter.h ethernet: chelsio: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
cxgb4vf_main.c ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
sge.c net: chelsio: switch from 'pci_' to 'dma_' API 2021-08-23 11:56:57 +01:00
t4vf_common.h cxgb4vf: configure ports accessible by the VF 2020-06-30 15:54:25 -07:00
t4vf_defs.h cxgb4vf: Update to 128 byte mailbox size for T6 adapter 2015-12-23 22:34:45 -05:00
t4vf_hw.c net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00