[PATCH v4 0/3] Show statistics for a vdpa device

From: Eli Cohen
Date: Sun May 08 2022 - 12:33:53 EST


The following three 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 implements this for mlx5_vdpa which gives received
descriptors and completed descriptors information for all the
virtqueues.

Jason, I removed your ack from the mlx5 patch since I modified it a bit.
I am sending the userspace patch I was using following this series.

Eli Cohen (3):
vdpa: Fix error logic in vdpa_nl_cmd_dev_get_doit
vdpa: Add support for querying vendor statistics
vdpa/mlx5: Add support for reading descriptor statistics

v3 -> v4:
Add a small cleanup fix patch
Only return statistics if feature negotiation is complete.

drivers/vdpa/mlx5/core/mlx5_vdpa.h | 2 +
drivers/vdpa/mlx5/net/mlx5_vnet.c | 171 +++++++++++++++++++++++++++++
drivers/vdpa/vdpa.c | 143 +++++++++++++++++++++++-
include/linux/mlx5/mlx5_ifc.h | 1 +
include/linux/mlx5/mlx5_ifc_vdpa.h | 39 +++++++
include/linux/vdpa.h | 5 +
include/uapi/linux/vdpa.h | 6 +
7 files changed, 363 insertions(+), 4 deletions(-)

--
2.35.1