diff options
author | Eli Cohen <elic@nvidia.com> | 2022-05-18 16:38:03 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-05-31 12:44:22 -0400 |
commit | 1892a3d425bf525ac98d6d3534035e6ed2bfab50 (patch) | |
tree | 5efbb4b7d1a2dfd2d0e87292b21d149ebc09dfaf /drivers/vdpa/mlx5/core/mlx5_vdpa.h | |
parent | a6a51adc6e8aafebfe0c4beb80e99694ea562b40 (diff) | |
download | lwn-1892a3d425bf525ac98d6d3534035e6ed2bfab50.tar.gz lwn-1892a3d425bf525ac98d6d3534035e6ed2bfab50.zip |
vdpa/mlx5: Add support for reading descriptor statistics
Implement the get_vq_stats calback of vdpa_config_ops to return the
statistics for a virtqueue.
The statistics are provided as vendor specific statistics where the
driver provides a pair of attribute name and attribute value.
Currently supported are received descriptors and completed descriptors.
Signed-off-by: Eli Cohen <elic@nvidia.com>
Message-Id: <20220518133804.1075129-6-elic@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vdpa/mlx5/core/mlx5_vdpa.h')
-rw-r--r-- | drivers/vdpa/mlx5/core/mlx5_vdpa.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/vdpa/mlx5/core/mlx5_vdpa.h b/drivers/vdpa/mlx5/core/mlx5_vdpa.h index daaf7b503677..44104093163b 100644 --- a/drivers/vdpa/mlx5/core/mlx5_vdpa.h +++ b/drivers/vdpa/mlx5/core/mlx5_vdpa.h @@ -61,6 +61,8 @@ struct mlx5_control_vq { struct vringh_kiov riov; struct vringh_kiov wiov; unsigned short head; + unsigned int received_desc; + unsigned int completed_desc; }; struct mlx5_vdpa_wq_ent { |