linux/drivers/net/ethernet/amd/xgbe
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
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xgbe-common.h net: amd-xgbe: Reset the PHY rx data path when mailbox command timeout 2021-02-16 14:09:45 -08:00
xgbe-dcb.c
xgbe-debugfs.c xgbe: no need to check return value of debugfs_create functions 2019-08-10 15:25:47 -07:00
xgbe-desc.c net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
xgbe-dev.c net: move skb->xmit_more hint to softnet data 2019-04-01 18:35:02 -07:00
xgbe-drv.c ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
xgbe-ethtool.c ethtool: extend coalesce setting uAPI with CQE mode 2021-08-24 07:38:29 -07:00
xgbe-i2c.c net: amd-xgbe: convert tasklets to use new tasklet_setup() API 2020-09-14 13:02:37 -07:00
xgbe-main.c ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
xgbe-mdio.c net: amd-xgbe: Reset link when the link never comes back 2021-02-16 14:09:45 -08:00
xgbe-pci.c amd-xgbe: Convert to generic power management 2020-06-23 20:31:18 -07:00
xgbe-phy-v1.c
xgbe-phy-v2.c net: amd-xgbe: Fix network fluctuations when using 1G BELFUSE SFP 2021-02-16 14:09:46 -08:00
xgbe-platform.c amd-xgbe: use devm_platform_ioremap_resource() to simplify code 2019-08-21 13:42:12 -07:00
xgbe-ptp.c
xgbe.h amd-xgbe: Update DMA coherency values 2021-03-25 16:57:18 -07:00