]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: Add PD resource tracking information
authorSteve Wise <swise@opengridcomputing.com>
Thu, 29 Mar 2018 16:10:44 +0000 (09:10 -0700)
committerDavid Ahern <dsahern@gmail.com>
Sun, 1 Apr 2018 15:19:01 +0000 (08:19 -0700)
commit4060e4c0d257dff58d0b398d099ff024ae5f16b8
tree64103d85090c48707971c30c002824ec51b685c2
parent8958a15c040e05f4f2c6f3946322202fdb875348
rdma: Add PD resource tracking information

Sample output:

Without CAP_NET_ADMIN capability:

dev mlx4_0 users 0 pid 0 comm [ib_srpt]
dev mlx4_0 users 0 pid 0 comm [ib_srp]
dev mlx4_0 users 1 pid 0 comm [ib_core]
dev cxgb4_0 users 0 pid 0 comm [ib_srp]

With CAP_NET_ADMIN capability:
dev mlx4_0 local_dma_lkey 0x8000 users 0 pid 0 comm [ib_srpt]
dev mlx4_0 local_dma_lkey 0x8000 users 0 pid 0 comm [ib_srp]
dev mlx4_0 local_dma_lkey 0x8000 users 1 pid 0 comm [ib_core]
dev cxgb4_0 local_dma_lkey 0x0 users 0 pid 0 comm [ib_srp]

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
rdma/res.c