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>
Showing
- drivers/vdpa/mlx5/core/mlx5_vdpa.h 2 additions, 0 deletionsdrivers/vdpa/mlx5/core/mlx5_vdpa.h
- drivers/vdpa/mlx5/net/mlx5_vnet.c 149 additions, 0 deletionsdrivers/vdpa/mlx5/net/mlx5_vnet.c
- include/linux/mlx5/mlx5_ifc.h 1 addition, 0 deletionsinclude/linux/mlx5/mlx5_ifc.h
- include/linux/mlx5/mlx5_ifc_vdpa.h 39 additions, 0 deletionsinclude/linux/mlx5/mlx5_ifc_vdpa.h
Loading
Please register or sign in to comment