Re: [PATCH net-next v2] Revert "sh_eth: remove open coded netif_running()"

From: Simon Horman
Date: Tue Mar 28 2023 - 11:05:48 EST


On Mon, Mar 27, 2023 at 05:21:12PM +0200, Wolfram Sang wrote:
> This reverts commit ce1fdb065695f49ef6f126d35c1abbfe645d62d5. It turned
> out this actually introduces a race condition. netif_running() is not a
> suitable check for get_stats.
>
> Reported-by: Sergey Shtylyov <s.shtylyov@xxxxxx>
> Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>

Reviewed-by: Simon Horman <simon.horman@xxxxxxxxxxxx>