Skip to content

Commit ffd321e

Browse files
Leon Romanovskydledford
authored andcommitted
RDMA/nldev: Export to user space number of contexts
[leonro@server ~]$ rdma res show 1: mlx5_0: pd 3 cq 5 qp 4 cm_id 0 mr 0 ctx 0 Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
1 parent 12d23a9 commit ffd321e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/infiniband/core/nldev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ static int fill_res_info(struct sk_buff *msg, struct ib_device *device)
308308
[RDMA_RESTRACK_QP] = "qp",
309309
[RDMA_RESTRACK_CM_ID] = "cm_id",
310310
[RDMA_RESTRACK_MR] = "mr",
311+
[RDMA_RESTRACK_CTX] = "ctx",
311312
};
312313

313314
struct rdma_restrack_root *res = &device->res;

0 commit comments

Comments
 (0)