RDMA/netlink: Remove CAP_NET_RAW check when dump a raw QP
authorMark Zhang <markz@mellanox.com>
Mon, 27 Jul 2020 09:58:28 +0000 (12:58 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 29 Jul 2020 18:51:19 +0000 (15:51 -0300)
commit1d70ad0f85435a7262de802b104e49e6598c50ff
tree595c18272b25b04a5fa7561dc27793bf93226ee8
parent6bf9d8f6f0df3f7aa852dc111c960bc04578c7c5
RDMA/netlink: Remove CAP_NET_RAW check when dump a raw QP

When dumping QPs bound to a counter, raw QPs should be allowed to dump
without the CAP_NET_RAW privilege. This is consistent with what "rdma res
show qp" does.

Fixes: c4ffee7c9bdb ("RDMA/netlink: Implement counter dumpit calback")
Link: https://lore.kernel.org/r/20200727095828.496195-1-leon@kernel.org
Signed-off-by: Mark Zhang <markz@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/nldev.c