IB/mlx5: Add counters read support
authorRaed Salem <raeds@mellanox.com>
Thu, 31 May 2018 13:43:41 +0000 (16:43 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sat, 2 Jun 2018 04:35:37 +0000 (07:35 +0300)
commit1a1e03dc15cfa94b7e878a32a979705df614d9c4
treeb62331cbb5f9c4627efa06bff7501ecf4b3fc60e
parent5e95af5f7b60796ccd890a39c0ed9c5df3537952
IB/mlx5: Add counters read support

This patch implements the uverbs counters read API, it will use the
specific read counters function to the given type to accomplish its
task.

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