OSDN Git Service

vdpa/mlx5: Add support for reading descriptor statistics
authorEli Cohen <elic@nvidia.com>
Wed, 18 May 2022 13:38:03 +0000 (16:38 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 31 May 2022 16:44:22 +0000 (12:44 -0400)
commit1892a3d425bf525ac98d6d3534035e6ed2bfab50
tree5efbb4b7d1a2dfd2d0e87292b21d149ebc09dfaf
parenta6a51adc6e8aafebfe0c4beb80e99694ea562b40
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>
drivers/vdpa/mlx5/core/mlx5_vdpa.h
drivers/vdpa/mlx5/net/mlx5_vnet.c
include/linux/mlx5/mlx5_ifc.h
include/linux/mlx5/mlx5_ifc_vdpa.h