Skip to content

Show statistics for a vdpa device

Eli Cohen lkml 7 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest6 patches 0 repliesNew
  2. v75 patches 3 repliesSuperseded
  3. v64 patches 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v53 patches10 repliesSuperseded
v43 patches3 repliesSuperseded
v32 patches10 repliesSuperseded
v22 patches0 repliesSuperseded

Changes in v8 from the cover letter

Convert cf_mutex to a rw_semaphore

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6vdpa: Fix error logic in vdpa_nl_cmd_dev_get_doitdrivers/vdpa/vdpa.c+9 -40 replies
2/6vdpa: Add support for querying vendor statisticsdrivers/vdpa/vdpa.c include/linux/vdpa.h include/uapi/linux/vdpa.h+171 -00 replies
3/6net/vdpa: Use readers/writers semaphore instead of vdpa_dev_mutexdrivers/vdpa/vdpa.c+32 -320 replies
4/6net/vdpa: Use readers/writers semaphore instead of cf_mutexdrivers/vdpa/vdpa.c include/linux/vdpa.h+18 -190 replies
5/6vdpa/mlx5: Add support for reading descriptor statisticsdrivers/vdpa/mlx5/core/mlx5_vdpa.h drivers/vdpa/mlx5/net/mlx5_vnet.c include/linux/mlx5/mlx5_ifc.h +1 more+191 -00 replies
6/6vdpa/mlx5: Use readers/writers semaphore instead of mutexdrivers/vdpa/mlx5/net/mlx5_vnet.c+19 -220 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchSi-Wei LiuJason Wang
1/6R-b A-b
2/6
3/6R-b A-b
4/6
5/6
6/6

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

Read the v8 thread

Cover letter [PATCH v8 0/6] Show statistics for a vdpa device

The following six patch series adds support to read vendor statistics for a vdpa device.

The first patch is just a cleanup fix.
The second patch lays the ground to allow an upstream driver to provide statistics in the form of an attribute name/attribute value pairs.

The third and fourth patches make changes to locking scheme to use readers/writers semaphore instead if mutex.

The fifth patch implements this for mlx5_vdpa which gives received descriptors and completed descriptors information for all the virtqueues.

The sixth patch changes reslock mutex to readers/writers semaphore to achieve the same goal as done in vdpa core.

v7 -> v8:
Convert cf_mutex to a rw_semaphore

Eli Cohen (6):
vdpa: Fix error logic in vdpa_nl_cmd_dev_get_doit
vdpa: Add support for querying vendor statistics net/vdpa: Use readers/writers semaphore instead of vdpa_dev_mutex net/vdpa: Use readers/writers semaphore instead of cf_mutex vdpa/mlx5: Add support for reading descriptor statistics vdpa/mlx5: Use readers/writers semaphore instead of mutex

 drivers/vdpa/mlx5/core/mlx5_vdpa.h |   2 +
 drivers/vdpa/mlx5/net/mlx5_vnet.c  | 186 ++++++++++++++++++---
 drivers/vdpa/vdpa.c                | 252 ++++++++++++++++++++++++-----
 include/linux/mlx5/mlx5_ifc.h      |   1 +
 include/linux/mlx5/mlx5_ifc_vdpa.h |  39 +++++
 include/linux/vdpa.h               |  15 +-
 include/uapi/linux/vdpa.h          |   6 +
 7 files changed, 432 insertions(+), 69 deletions(-)
Signature · 1 line
2.35.1