net: use dev_addr_set()
Use dev_addr_set() instead of writing directly to netdev->dev_addr in various misc and old drivers. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
794a69b3f8
commit
ea52a0b58e
@ -748,8 +748,7 @@ struct failover *net_failover_create(struct net_device *standby_dev)
|
||||
failover_dev->hw_features |= NETIF_F_GSO_ENCAP_ALL;
|
||||
failover_dev->features |= failover_dev->hw_features;
|
||||
|
||||
memcpy(failover_dev->dev_addr, standby_dev->dev_addr,
|
||||
failover_dev->addr_len);
|
||||
dev_addr_set(failover_dev, standby_dev->dev_addr);
|
||||
|
||||
failover_dev->min_mtu = standby_dev->min_mtu;
|
||||
failover_dev->max_mtu = standby_dev->max_mtu;
|
||||
|
Reference in New Issue
Block a user