Skip to content

vhost: introduce per-virtqueue stats API

Maxime Coquelin dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 6 repliesIn review
  2. v15 patches 2 repliesSuperseded

Changes in v2 from the cover letter

=============
- Rebased on top of v22.03
- Add documentation

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5vhost: fix missing virtqueue lock protectionlib/vhost/vhost.c+4 -02 replies
2/5vhost: add per-virtqueue statistics supportdoc/guides/prog_guide/vhost_lib.rst lib/vhost/rte_vhost.h lib/vhost/socket.c +4 more+308 -40 replies
3/5net/vhost: move to Vhost library stats APIdrivers/net/vhost/rte_eth_vhost.c+120 -2281 reply
4/5vhost: add statistics for guest notificationslib/vhost/vhost.c lib/vhost/vhost.h+6 -01 reply
5/5vhost: add statistics for IOTLBlib/vhost/vhost.c lib/vhost/vhost.h+12 -12 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchDavid MarchandChenbo Xia
1/5R-b
2/5
3/5R-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] vhost: introduce per-virtqueue stats API

This series introduces a new Vhost API that provides per-virtqueue statistics to the application. It will be generally useful, but initial motivation for this series was to be able to get to get virtqueues stats when Virtio RSS feature will be supported in Vhost library.

First patch is a fix that should be considered even if the series does not make it in v22.03. Second patch introduces the new API and generic statistics. Patch 3 makes use of this API in Vhost PMD. The two last patches introduce more specific counters (syscalls in DP, IOTLB cache hits and misses).

I understand we are late in the v22.03 release cycle, and so the series may be postponned to next release even though it does not introduces much risks of regressions. At least patch 1 has to be considered for this release.

Changes in v2:
=============
- Rebased on top of v22.03
- Add documentation

Maxime Coquelin (5):
vhost: fix missing virtqueue lock protection
vhost: add per-virtqueue statistics support net/vhost: move to Vhost library stats API
vhost: add statistics for guest notifications
vhost: add statistics for IOTLB

 doc/guides/prog_guide/vhost_lib.rst |  24 ++
 drivers/net/vhost/rte_eth_vhost.c   | 348 ++++++++++------------------
 lib/vhost/rte_vhost.h               |  99 ++++++++
 lib/vhost/socket.c                  |   4 +-
 lib/vhost/version.map               |   5 +
 lib/vhost/vhost.c                   | 124 +++++++++-
 lib/vhost/vhost.h                   |  26 ++-
 lib/vhost/virtio_net.c              |  53 +++++
 8 files changed, 450 insertions(+), 233 deletions(-)
Signature · 1 line
2.35.1