Netdev List
 help / color / mirror / Atom feed
* [PATCH net v2] net: hisilicon: hix5hd2_gmac: remove redundant NAPI delete
@ 2026-07-28  8:17 Jiawen Liu
  2026-08-01  1:20 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Jiawen Liu @ 2026-07-28  8:17 UTC (permalink / raw)
  To: Jian Shen, Andrew Lunn, David S . Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni
  Cc: netdev, linux-kernel, Jiawen Liu

hix5hd2_dev_remove() calls netif_napi_del() before unregister_netdev().
This is not needed because unregister_netdev() deletes all NAPI instances
attached to the net_device.

Remove the redundant call and let the networking core tear down the NAPI
instance during unregister_netdev(). The probe error path still keeps its
explicit netif_napi_del(), because the device has not been registered
there.

Fixes: 57c5bc9ad7d7 ("net: hisilicon: add hix5hd2 mac driver")
Signed-off-by: Jiawen Liu <1298662399@qq.com>
---
 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/ethernet/hisilicon/hix5hd2_gmac.c b/drivers/net/ethernet/hisilicon/hix5hd2_gmac.c
index e3e7f2270560..02282dc86faf 100644
--- a/drivers/net/ethernet/hisilicon/hix5hd2_gmac.c
+++ b/drivers/net/ethernet/hisilicon/hix5hd2_gmac.c
@@ -1282,7 +1282,6 @@ static void hix5hd2_dev_remove(struct platform_device *pdev)
 	struct net_device *ndev = platform_get_drvdata(pdev);
 	struct hix5hd2_priv *priv = netdev_priv(ndev);
 
-	netif_napi_del(&priv->napi);
 	unregister_netdev(ndev);
 	mdiobus_unregister(priv->bus);
 	mdiobus_free(priv->bus);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net v2] net: hisilicon: hix5hd2_gmac: remove redundant NAPI delete
  2026-07-28  8:17 [PATCH net v2] net: hisilicon: hix5hd2_gmac: remove redundant NAPI delete Jiawen Liu
@ 2026-08-01  1:20 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-08-01  1:20 UTC (permalink / raw)
  To: Jiawen Liu
  Cc: shenjian15, andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
	linux-kernel

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 28 Jul 2026 12:17:10 +0400 you wrote:
> hix5hd2_dev_remove() calls netif_napi_del() before unregister_netdev().
> This is not needed because unregister_netdev() deletes all NAPI instances
> attached to the net_device.
> 
> Remove the redundant call and let the networking core tear down the NAPI
> instance during unregister_netdev(). The probe error path still keeps its
> explicit netif_napi_del(), because the device has not been registered
> there.
> 
> [...]

Here is the summary with links:
  - [net,v2] net: hisilicon: hix5hd2_gmac: remove redundant NAPI delete
    https://git.kernel.org/netdev/net/c/f307a7dc3209

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-01  1:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-28  8:17 [PATCH net v2] net: hisilicon: hix5hd2_gmac: remove redundant NAPI delete Jiawen Liu
2026-08-01  1:20 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox