]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit723637813e9100757eeb323b3df7efb15547726d
tree5efbb4b7d1a2dfd2d0e87292b21d149ebc09dfaf
parenta9a68d73c41b04f80f889aa9bfbcc053bad18efc
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