[PATCH v7 0/5] Show statistics for a vdpa device

Eli Cohen posted 5 patches 3 years, 11 months ago
There is a newer version of this series
drivers/vdpa/mlx5/core/mlx5_vdpa.h |   2 +
drivers/vdpa/mlx5/net/mlx5_vnet.c  | 186 ++++++++++++++++++++---
drivers/vdpa/vdpa.c                | 229 +++++++++++++++++++++++++----
include/linux/mlx5/mlx5_ifc.h      |   1 +
include/linux/mlx5/mlx5_ifc_vdpa.h |  39 +++++
include/linux/vdpa.h               |   3 +
include/uapi/linux/vdpa.h          |   6 +
7 files changed, 414 insertions(+), 52 deletions(-)
[PATCH v7 0/5] Show statistics for a vdpa device
Posted by Eli Cohen 3 years, 11 months ago
The following four 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 patch makes changes to locking scheme to use readers/writers
semaphore instead if mutex.

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

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

Eli Cohen (5):
  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 mutex
  vdpa/mlx5: Add support for reading descriptor statistics
  vdpa/mlx5: Use readers/writers semaphore instead of mutex

v6 -> v7:
1. Add a new mlx5 patch to modify reslock from a mutex to rw_semaphore
2. Clean old comments
3. Move VDPA_ATTR_DEV_NET_CFG_MAX_VQP attribute insertion from mlx5 to
   vdpa core.

 drivers/vdpa/mlx5/core/mlx5_vdpa.h |   2 +
 drivers/vdpa/mlx5/net/mlx5_vnet.c  | 186 ++++++++++++++++++++---
 drivers/vdpa/vdpa.c                | 229 +++++++++++++++++++++++++----
 include/linux/mlx5/mlx5_ifc.h      |   1 +
 include/linux/mlx5/mlx5_ifc_vdpa.h |  39 +++++
 include/linux/vdpa.h               |   3 +
 include/uapi/linux/vdpa.h          |   6 +
 7 files changed, 414 insertions(+), 52 deletions(-)

-- 
2.35.1