aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/mlx5/mlx5_ifc.h
diff options
context:
space:
mode:
authorEli Cohen <elic@nvidia.com>2022-05-18 16:38:03 +0300
committerMichael S. Tsirkin <mst@redhat.com>2022-05-31 12:44:22 -0400
commit1892a3d425bf525ac98d6d3534035e6ed2bfab50 (patch)
tree5efbb4b7d1a2dfd2d0e87292b21d149ebc09dfaf /include/linux/mlx5/mlx5_ifc.h
parentnet/vdpa: Use readers/writers semaphore instead of cf_mutex (diff)
downloadwireguard-linux-1892a3d425bf525ac98d6d3534035e6ed2bfab50.tar.xz
wireguard-linux-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 'include/linux/mlx5/mlx5_ifc.h')
-rw-r--r--include/linux/mlx5/mlx5_ifc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 78b3d3465dd7..2a8334bb5f82 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -87,6 +87,7 @@ enum {
enum {
MLX5_OBJ_TYPE_GENEVE_TLV_OPT = 0x000b,
MLX5_OBJ_TYPE_VIRTIO_NET_Q = 0x000d,
+ MLX5_OBJ_TYPE_VIRTIO_Q_COUNTERS = 0x001c,
MLX5_OBJ_TYPE_MATCH_DEFINER = 0x0018,
MLX5_OBJ_TYPE_MKEY = 0xff01,
MLX5_OBJ_TYPE_QP = 0xff02,