[PATCH net-next] net: stmmac: remove redundant racy tear-down in stmmac_dvr_remove()
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Mon Mar 17 13:50:44 PDT 2025
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni at redhat.com>:
On Fri, 14 Mar 2025 18:02:39 +0000 you wrote:
> While the network device is registered, it is published to userspace,
> and thus userspace can change its state. This means calling
> functions such as stmmac_stop_all_dma() and stmmac_mac_set() are
> racy.
>
> Moreover, unregister_netdev() will unpublish the network device, and
> then if appropriate call the .ndo_stop() method, which is
> stmmac_release(). This will first call phylink_stop() which will
> synchronously take the link down, resulting in stmmac_mac_link_down()
> and stmmac_mac_set(, false) being called.
>
> [...]
Here is the summary with links:
- [net-next] net: stmmac: remove redundant racy tear-down in stmmac_dvr_remove()
https://git.kernel.org/netdev/net-next/c/180fa8d0a2cb
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-arm-kernel
mailing list