# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/10/11213367
- Thread: https://ratatoskr.run/netdev/2021/10/11213343/t.md

```text


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
```
