[PATCH net-next 3/7] ethernet: make use of eth_hw_addr_random() where appropriate

Linus Walleij linus.walleij at linaro.org
Wed Oct 13 16:50:15 PDT 2021


On Wed, Oct 13, 2021 at 10:44 PM Jakub Kicinski <kuba at kernel.org> wrote:

> Number of drivers use eth_random_addr(netdev->dev_addr)
> thus writing to netdev->dev_addr directly, and not setting
> the address type. Switch them to eth_hw_addr_random().
>
>   @@
>   expression netdev;
>   @@
>   - eth_random_addr(netdev->dev_addr);
>   + eth_hw_addr_random(netdev);
>
> Signed-off-by: Jakub Kicinski <kuba at kernel.org>

Oh this is better.
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list