IB/core: added support to use rdma cgroup controller
authorParav Pandit <pandit.parav@gmail.com>
Tue, 10 Jan 2017 00:02:14 +0000 (00:02 +0000)
committerTejun Heo <tj@kernel.org>
Tue, 10 Jan 2017 16:14:27 +0000 (11:14 -0500)
commit43579b5f2c79d747d8294bd233db41c954e2dc4a
treed9934831b4c832cf0c2c10606276940ff5e3a7d4
parent39d3e7584a686541a3295ff1624d341e669e1afc
IB/core: added support to use rdma cgroup controller

Added support APIs for IB core to register/unregister every IB/RDMA
device with rdma cgroup for tracking rdma resources.
IB core registers with rdma cgroup controller.
Added support APIs for uverbs layer to make use of rdma controller.
Added uverbs layer to perform resource charge/uncharge functionality.
Added support during query_device uverb operation to ensure it
returns resource limits by honoring rdma cgroup configured limits.

Signed-off-by: Parav Pandit <pandit.parav@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/infiniband/core/Makefile
drivers/infiniband/core/cgroup.c [new file with mode: 0644]
drivers/infiniband/core/core_priv.h
drivers/infiniband/core/device.c
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_main.c
include/rdma/ib_verbs.h