RDMA: Make counters destroy symmetrical
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 7 Sep 2020 12:09:21 +0000 (15:09 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 9 Sep 2020 17:14:29 +0000 (14:14 -0300)
commit71ff3f6268644783d556fab10066f1027030135f
tree109f34c4fca9d8247dff18e3e2c9966838ffb764
parentadd53535fb3033c249d9327ae3e7c36d3382bbd1
RDMA: Make counters destroy symmetrical

Change counters to return failure like any other verbs destroy, however
this flow shouldn't return error at all.

Link: https://lore.kernel.org/r/20200907120921.476363-10-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/uverbs_std_types_counters.c
drivers/infiniband/hw/mlx5/counters.c
include/rdma/ib_verbs.h