summaryrefslogtreecommitdiffstats
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-10-01 14:32:19 -0700
committerDavid S. Miller <davem@davemloft.net>2021-10-02 14:18:25 +0100
commit2f23e5cef31414156c24b90e56dedc118feb9bf3 (patch)
treed492cf3db29a5b32cdf0cab268db86b018cea738 /drivers/net/macvlan.c
parent4e9b9de65cddf6bd6444a72daf6118dfd629f645 (diff)
downloadlinux-stable-2f23e5cef31414156c24b90e56dedc118feb9bf3.tar.gz
linux-stable-2f23e5cef31414156c24b90e56dedc118feb9bf3.tar.bz2
linux-stable-2f23e5cef31414156c24b90e56dedc118feb9bf3.zip
net: use eth_hw_addr_set()
Convert sw 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) Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r--drivers/net/macvlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index 35f46ad040b0..63563edfd4a6 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -202,7 +202,7 @@ static void macvlan_hash_change_addr(struct macvlan_dev *vlan,
/* Now that we are unhashed it is safe to change the device
* address without confusing packet delivery.
*/
- memcpy(vlan->dev->dev_addr, addr, ETH_ALEN);
+ eth_hw_addr_set(vlan->dev, addr);
macvlan_hash_add(vlan);
}