Thread (15 messages) flat view 15 messages, 6 authors, 2021-10-14

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


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: kda@linux-powerpc.org
CC: GR-Linux-NIC-Dev@marvell.com
CC: f.fainelli@gmail.com
CC: romieu@fr.zoreil.com
CC: venza@brownhat.org
CC: linux-parisc@vger.kernel.org
---
  drivers/net/ethernet/rdc/r6040.c             | 12 ++++++------
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help