OpenCloudOS-Kernel/drivers/net/ethernet/chelsio/cxgb4
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
clip_tbl.c cxgb4: clip_tbl: use list_del_init instead of list_del/INIT_LIST_HEAD 2021-05-18 13:43:37 -07:00
clip_tbl.h
cudbg_common.c
cudbg_entity.h cxgb4: collect serial config version from register 2021-02-10 15:05:40 -08:00
cudbg_if.h
cudbg_lib.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-09 20:48:35 -07:00
cudbg_lib.h
cudbg_lib_common.h
cudbg_zlib.c
cudbg_zlib.h
cxgb4.h ethernet: chelsio: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
cxgb4_cudbg.c cxgb4: remove unneeded if-null-free check 2021-04-09 16:47:41 -07:00
cxgb4_cudbg.h
cxgb4_dcb.c
cxgb4_dcb.h
cxgb4_debugfs.c Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-12 16:54:48 -08:00
cxgb4_debugfs.h
cxgb4_ethtool.c ethtool: extend coalesce setting uAPI with CQE mode 2021-08-24 07:38:29 -07:00
cxgb4_fcoe.c
cxgb4_fcoe.h
cxgb4_filter.c cxgb4: make the array match_all_mac static, makes object smaller 2021-08-02 15:01:26 -07:00
cxgb4_filter.h
cxgb4_main.c ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
cxgb4_mps.c cxgb4: fix memory leak during module unload 2020-09-17 16:29:20 -07:00
cxgb4_ptp.c net: chelsio: cxgb4: Fix wrong function name in comments 2021-05-17 14:12:38 -07:00
cxgb4_ptp.h
cxgb4_tc_flower.c cxgb4: fix regression with HASH tc prio value update 2021-06-03 15:12:42 -07:00
cxgb4_tc_flower.h cxgb4: handle 4-tuple PEDIT to NAT mode translation 2020-10-14 18:20:37 -07:00
cxgb4_tc_matchall.c flow_offload: reject configuration of packet-per-second policing in offload drivers 2021-03-13 14:18:09 -08:00
cxgb4_tc_matchall.h cxgb4: add TC-MATCHALL IPv6 support 2020-08-03 18:17:08 -07:00
cxgb4_tc_mqprio.c cxgb4: avoid link re-train during TC-MQPRIO configuration 2021-06-04 14:45:13 -07:00
cxgb4_tc_mqprio.h
cxgb4_tc_u32.c cxgb4: remove unneeded if-null-free check 2021-04-09 16:47:41 -07:00
cxgb4_tc_u32.h
cxgb4_tc_u32_parse.h
cxgb4_thermal.c cxgb4: fix thermal zone device registration 2020-08-31 12:27:23 -07:00
cxgb4_uld.c cxgb4: fix IRQ free race during driver unload 2021-07-08 13:34:13 -07:00
cxgb4_uld.h cxgb4/chtls/cxgbit: Keeping the max ofld immediate data size same in cxgb4 and ulds 2021-02-15 12:39:33 -08:00
l2t.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
l2t.h
sched.c
sched.h
sge.c net: chelsio: switch from 'pci_' to 'dma_' API 2021-08-23 11:56:57 +01:00
smt.c
smt.h
srq.c
srq.h
t4_chip_type.h
t4_hw.c ethernet: chelsio: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
t4_hw.h
t4_msg.h
t4_pci_id_tbl.h cxgb4: Add new T6 PCI device id 0x6092 2021-02-04 18:09:23 -08:00
t4_regs.h cxgb4: collect serial config version from register 2021-02-10 15:05:40 -08:00
t4_tcb.h cxgb4/chtls: Fix tid stuck due to wrong update of qid 2021-01-13 19:40:05 -08:00
t4_values.h
t4fw_api.h
t4fw_version.h