common/mlx5: add DevX commands for queue counters
authorMatan Azrad <matan@nvidia.com>
Thu, 25 Feb 2021 10:45:00 +0000 (10:45 +0000)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 3 Mar 2021 16:27:19 +0000 (17:27 +0100)
commit750e48c7d8c39531c6e0a3aab0f2e11f02af19b4
tree37a1d5184166e996f1c9bb13396799a50fb96f90
parent542689e92e668c2d734829145996da15de3d0c97
common/mlx5: add DevX commands for queue counters

A queue counter set is an HW object that can be assigned to any RQ\QP
and it counts HW events on the assigned QPs\RQs.

Add DevX API to allocate and query queue counter set object.

The only used counter event is the "out of buffer" where the queue
drops packets when no SW buffer is available to receive it.

Cc: stable@dpdk.org
Signed-off-by: Matan Azrad <matan@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/common/mlx5/mlx5_devx_cmds.c
drivers/common/mlx5/mlx5_devx_cmds.h
drivers/common/mlx5/mlx5_prm.h
drivers/common/mlx5/version.map