diff options
| author | Leon Romanovsky <[email protected]> | 2020-11-17 07:01:46 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-11-27 15:38:46 +0000 |
| commit | b47a98efa97889c5b16d17e77eed3dc4500674eb (patch) | |
| tree | ac33a17a6cc455318573b51bf468b3e2f2068c76 /drivers/infiniband/core/counters.c | |
| parent | RDMA/mlx5: Use PCI device for dma mappings (diff) | |
| download | kernel-b47a98efa97889c5b16d17e77eed3dc4500674eb.tar.gz kernel-b47a98efa97889c5b16d17e77eed3dc4500674eb.zip | |
RDMA/core: Track device memory MRs
Device memory (DM) are registered as MR during initialization flow, these
MRs were not tracked by resource tracker and had res->valid set as a
false. Update the code to manage them too.
Before this change:
$ ibv_rc_pingpong -j &
$ rdma res show mr <-- shows nothing
After this change:
$ ibv_rc_pingpong -j &
$ rdma res show mr
dev ibp0s9 mrn 0 mrlen 4096 pdn 3 pid 734 comm ibv_rc_pingpong
Fixes: be934cca9e98 ("IB/uverbs: Add device memory registration ioctl support")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/infiniband/core/counters.c')
0 files changed, 0 insertions, 0 deletions
