IB/mlx5: Add counters create and destroy support
authorRaed Salem <raeds@mellanox.com>
Thu, 31 May 2018 13:43:38 +0000 (16:43 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sat, 2 Jun 2018 04:33:57 +0000 (07:33 +0300)
commitb29e2a1309e38cd1afa598a54f3ccb4e4d2ee01c
treecffa41a7342a2168707ebbb31e780b367156a94f
parentb6ba4a9aa59fe99c6e9ca6ec941cd5f9823b0cae
IB/mlx5: Add counters create and destroy support

This patch implements the device counters create and destroy APIs and
introducing some internal management structures.

Downstream patches in this series will add the functionality to support
flow counters binding and reading.

Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Raed Salem <raeds@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h