mirror of
https://github.com/torvalds/linux.git
synced 2024-12-20 01:52:13 +00:00
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>
This commit is contained in:
parent
12d23a9198
commit
ffd321e4b7
@ -308,6 +308,7 @@ static int fill_res_info(struct sk_buff *msg, struct ib_device *device)
|
||||
[RDMA_RESTRACK_QP] = "qp",
|
||||
[RDMA_RESTRACK_CM_ID] = "cm_id",
|
||||
[RDMA_RESTRACK_MR] = "mr",
|
||||
[RDMA_RESTRACK_CTX] = "ctx",
|
||||
};
|
||||
|
||||
struct rdma_restrack_root *res = &device->res;
|
||||
|
Loading…
Reference in New Issue
Block a user