vdpa/mlx5: support virtio queue statistics get
authorMatan Azrad <matan@mellanox.com>
Thu, 18 Jun 2020 18:59:43 +0000 (18:59 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:29 +0000 (14:52 +0200)
commit7de66d823e993fd0394a5604d03564a10f2be8e8
treeb7c3ffac91315f7fa5c9bc6c62faa47cfbed624f
parent796ae7bb6a41fd87c2a975763f26775c2fe7d8b3
vdpa/mlx5: support virtio queue statistics get

Add support for statistics operations.

A DevX counter object is allocated per virtq in order to
manage the virtq statistics.

The counter object is allocated before the virtq creation
and destroyed after it, so the statistics are valid only in
the life time of the virtq.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
doc/guides/rel_notes/release_20_08.rst
doc/guides/vdpadevs/features/mlx5.ini
drivers/vdpa/mlx5/mlx5_vdpa.c
drivers/vdpa/mlx5/mlx5_vdpa.h
drivers/vdpa/mlx5/mlx5_vdpa_virtq.c