Skip to content

Commit 1d70ad0

Browse files
Mark Zhangjgunthorpe
authored andcommitted
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: c4ffee7 ("RDMA/netlink: Implement counter dumpit calback") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Zhang <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 6bf9d8f commit 1d70ad0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/infiniband/core/nldev.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,6 @@ static int fill_stat_counter_qps(struct sk_buff *msg,
759759
xa_lock(&rt->xa);
760760
xa_for_each(&rt->xa, id, res) {
761761
qp = container_of(res, struct ib_qp, res);
762-
if (qp->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW))
763-
continue;
764-
765762
if (!qp->counter || (qp->counter->id != counter->id))
766763
continue;
767764

0 commit comments

Comments
 (0)