Re: [PATCH net-next 7/7] ethernet: replace netdev->dev_addr 16bit writes

From
Florian Fainelli <f.fainelli@gmail.com>
Date
2021-10-14 02:28:36
Reply to
Jakub Kicinski, 2021-10-13

On 10/13/2021 1:44 PM, Jakub Kicinski wrote:
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.

This patch takes care of drivers which cast netdev->dev_addr to
a 16bit type, often with an explicit byte order.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: klassert@kernel.org
CC: <redacted>
CC: <redacted>
CC: f.fainelli@gmail.com
CC: romieu@fr.zoreil.com
CC: venza@brownhat.org
CC: <redacted>
---
  drivers/net/ethernet/rdc/r6040.c             | 12 ++++++------
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Thread (15 messages) 15 messages, 6 authors, last reply 2021-10-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help