aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/dec/tulip/de4x5.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-10-08 10:59:10 -0700
committerDavid S. Miller <davem@davemloft.net>2021-10-09 11:46:56 +0100
commita04436b27a93421634455455174e917dd63887c1 (patch)
tree5ef6984ce0a9a3618ee5bd22335bcd5df5457b08 /drivers/net/ethernet/dec/tulip/de4x5.c
parentethernet: forcedeth: remove direct netdev->dev_addr writes (diff)
downloadlinux-dev-a04436b27a93421634455455174e917dd63887c1.tar.xz
linux-dev-a04436b27a93421634455455174e917dd63887c1.zip
ethernet: tg3: remove direct netdev->dev_addr writes
tg3 does various forms of direct writes to netdev->dev_addr. Use a local buffer. Make sure local buffer is aligned since eth_platform_get_mac_address() may call ether_addr_copy(). tg3_get_device_address() returns whenever it finds a method that found a valid address. Instead of modifying all the exit points pass the buffer from the outside and commit the address in the caller. Constify the argument of the set addr helper. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/dec/tulip/de4x5.c')
0 files changed, 0 insertions, 0 deletions