All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] virtio-net/dim: fix irq moderation init failure unwind
@ 2026-09-30  8:19 Jianlin Shi
  2026-09-30  8:19 ` [PATCH 1/2] dim: clear irq_moder on init failure Jianlin Shi
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Jianlin Shi @ 2026-09-30  8:19 UTC (permalink / raw)
  To: netdev, virtualization
  Cc: mst, jasowangio, eperezma, xuanzhuo, andrew+netdev, davem,
	edumazet, kuba, pabeni, talgi, hengqi, horms

net_dim_init_irq_moder() leaves dev->irq_moder dangling when profile
allocation fails.  virtio-net probe then skips virtqueue teardown if
that init fails after init_vqs().

Patch 1 makes the dim init failure path clear irq_moder, so
net_dim_free_irq_moder() is a no-op.

Patch 2 sends the virtio-net failure through the existing
free_irq_moder unwind (reset + del_vqs), matching the page-pool
failure path.

Patch 2 depends on patch 1.

Jianlin Shi (2):
  dim: clear irq_moder on init failure
  virtio-net: unwind VQs when irq moderation init fails

 drivers/net/virtio_net.c | 2 +-
 lib/dim/net_dim.c        | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-11-19 14:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-30  8:19 [PATCH 0/2] virtio-net/dim: fix irq moderation init failure unwind Jianlin Shi
2026-09-30  8:19 ` [PATCH 1/2] dim: clear irq_moder on init failure Jianlin Shi
2026-09-30  8:33   ` sashiko-bot
2026-10-06  1:53   ` Jakub Kicinski
2026-10-08 15:42     ` Jianlin Shi
2026-09-30  8:19 ` [PATCH 2/2] virtio-net: unwind VQs when irq moderation init fails Jianlin Shi
2026-09-30  8:33   ` sashiko-bot
2026-11-02 13:46   ` Michael S. Tsirkin
2026-11-02 15:51 ` [PATCH v2 0/2] virtio-net/dim: fix irq moderation init failure unwind Jianlin Shi
2026-11-02 15:51   ` [PATCH v2 1/2] dim: clear irq_moder on init failure Jianlin Shi
2026-11-02 15:51   ` [PATCH v2 2/2] virtio-net: unwind VQs when irq moderation init fails Jianlin Shi
2026-11-19 14:45   ` [PATCH v2 0/2] virtio-net/dim: fix irq moderation init failure unwind Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.