diff options
author | Jakub Kicinski <[email protected]> | 2021-10-19 10:12:36 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-10-20 19:33:58 +0200 |
commit | 6ed178cb23ec7503dd354c02c0c9ef97a6b8b22a (patch) | |
tree | a24ce83288441028e1fbd17660670872475457d8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 07e00148a2ee505205e239b7cf6fd103f0f87789 (diff) |
staging: use eth_hw_addr_set()
Commit 406f42fa0d3c ("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 staging drivers 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)
@@
- memcpy(dev->dev_addr, np, 6)
+ eth_hw_addr_set(dev, np)
Signed-off-by: Jakub Kicinski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions