All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v11 0/3] Subject: [PATCH 0/3] virtio-net: Add notification coalescing support
@ 2026-10-17 19:22 Koushik Dutta
  2026-10-17 19:22 ` [PATCH v11 1/3] [PATCH 1/3] Introduce virtio_net_handle_tx_dispatch() to unify TX path handling. This dispatcher dynamically selects between timer-based and BH-based TX processing based on configuration Koushik Dutta
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Koushik Dutta @ 2026-10-17 19:22 UTC (permalink / raw)
  To: qemu-devel
  Cc: Jason Wang, Jason Wang, Michael S. Tsirkin, Zhao Liu,
	Stefano Garzarella, Philippe Mathieu-Daudé,
	Eugenio Pérez

This series implements VIRTIO_NET_F_NOTF_COAL (bit 53) for virtio-net,
enabling interrupt coalescing to reduce CPU overhead in high-throughput
workloads.

Patch 1 refactors TX path handling by introducing a unified dispatcher
that dynamically selects between timer-based and BH-based processing.
This is preparatory work with no functional changes.

Patch 2 implements the core notification coalescing feature, allowing
guests to configure RX/TX interrupt batching via ethtool -C using
time-based (microseconds) or count-based (packet) thresholds.

Patch 3 adds vDPA backend support, enabling coalescing state to be
restored during live migration when using Shadow VirtQueue.

Testing:
- Functional: ethtool -C configuration in guest with vDPA device
- Migration: VMState persistence across live migration
- Performance: 20% CPU overhead reduction, 30% fewer interrupts
- Compatibility: Feature disabled when tx=timer is configured

Changes in v11:
---------------
- Adds vDPA backend support for notification coalescing
- Resolved review comments

Koushik Dutta (3):
  Introduce virtio_net_handle_tx_dispatch() to unify TX path handling.
    This dispatcher dynamically selects between timer-based and BH-based
    TX processing based on configuration.
  virtio-net: Add VIRTIO_NET_F_NOTF_COAL support
  vhost-vdpa: Add VIRTIO_NET_F_NOTF_COAL support for vDPA

 hw/net/virtio-net.c            | 241 ++++++++++++++++++++++++++++++---
 include/hw/virtio/virtio-net.h |  11 ++
 net/passt.c                    |   1 +
 net/tap.c                      |   1 +
 net/vhost-user.c               |   1 +
 net/vhost-vdpa.c               |  58 ++++++++
 6 files changed, 294 insertions(+), 19 deletions(-)

-- 
2.53.0



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

end of thread, other threads:[~2026-10-28 13:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-17 19:22 [PATCH v11 0/3] Subject: [PATCH 0/3] virtio-net: Add notification coalescing support Koushik Dutta
2026-10-17 19:22 ` [PATCH v11 1/3] [PATCH 1/3] Introduce virtio_net_handle_tx_dispatch() to unify TX path handling. This dispatcher dynamically selects between timer-based and BH-based TX processing based on configuration Koushik Dutta
2026-10-17 19:22 ` [PATCH v11 2/3] [PATCH 2/3] virtio-net: Add VIRTIO_NET_F_NOTF_COAL support Koushik Dutta
2026-10-28 13:35   ` Michael S. Tsirkin
2026-10-17 19:22 ` [PATCH v11 3/3] [PATCH 3/3] vhost-vdpa: Add VIRTIO_NET_F_NOTF_COAL support for vDPA Koushik Dutta

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.