Skip to content

Subject: [PATCH 0/3] virtio-net: Add notification coalescing support

Koushik Dutta qemu-devel 11 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v11 Latest3 patches 2 repliesIn review
  2. v102 patches 5 repliesSuperseded
  3. v92 patches 2 repliesSuperseded
Earlier versions · 8
VersionPostedPatchesRepliesStatus
v82 patches4 repliesSuperseded
v71 patch3 repliesSuperseded
v61 patch1 replySuperseded
v51 patch2 repliesSuperseded
v41 patch4 repliesSuperseded
v31 patch1 replySuperseded
v21 patch3 repliesSuperseded
v11 patch2 repliesSuperseded

Changes in v11 from the cover letter

---------------
- Adds vDPA backend support for notification coalescing
- Resolved review comments

Patches in v11 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Introduce 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.hw/net/virtio-net.c include/hw/virtio/virtio-net.h+28 -150 replies
2/3virtio-net: Add VIRTIO_NET_F_NOTF_COAL supporthw/net/virtio-net.c include/hw/virtio/virtio-net.h net/passt.c +3 more+209 -42 replies
3/3vhost-vdpa: Add VIRTIO_NET_F_NOTF_COAL support for vDPAnet/vhost-vdpa.c+57 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v11 yet.

Read the v11 thread

Cover letter [PATCH v11 0/3] Subject: [PATCH 0/3] virtio-net: Add notification coalescing support

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(-)
Signature · 1 line
2.53.0