common/mlx5: support DevX virtq stats operations
authorMatan Azrad <matan@mellanox.com>
Thu, 18 Jun 2020 18:59:42 +0000 (18:59 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:29 +0000 (14:52 +0200)
commit796ae7bb6a41fd87c2a975763f26775c2fe7d8b3
tree0b150b0bccbf3c711f2af6f4acc44688e4f6f924
parent1cb44157518a68f3f829e476ea2cb2040dcc0dd5
common/mlx5: support DevX virtq stats operations

Add DevX API to create and query virtio queue statistics
from the HW. The next counters are supported by the HW per
virtio queue:
received_desc.
completed_desc.
error_cqes.
bad_desc_errors.
exceed_max_chain.
invalid_buffer.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/common/mlx5/mlx5_devx_cmds.c
drivers/common/mlx5/mlx5_devx_cmds.h
drivers/common/mlx5/mlx5_prm.h
drivers/common/mlx5/rte_common_mlx5_version.map