Re: [PATCHv7 2/3] IB/core: added support to use rdma cgroup controller

2016-03-01 Thread Parav Pandit
On Tue, Mar 1, 2016 at 4:36 PM, Haggai Eran wrote: > On 01/03/2016 11:22, Parav Pandit wrote: >> On Tue, Mar 1, 2016 at 2:42 PM, Haggai Eran wrote: >>> On 28/02/2016 16:13, Parav Pandit wrote: diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c index 0

Re: [PATCHv7 2/3] IB/core: added support to use rdma cgroup controller

2016-03-01 Thread Haggai Eran
On 01/03/2016 11:22, Parav Pandit wrote: > On Tue, Mar 1, 2016 at 2:42 PM, Haggai Eran wrote: >> On 28/02/2016 16:13, Parav Pandit wrote: >>> diff --git a/drivers/infiniband/core/device.c >>> b/drivers/infiniband/core/device.c >>> index 00da80e..54ea8ce 100644 >>> --- a/drivers/infiniband/core/de

Re: [PATCHv7 2/3] IB/core: added support to use rdma cgroup controller

2016-03-01 Thread Parav Pandit
On Tue, Mar 1, 2016 at 2:38 PM, Haggai Eran wrote: > On 28/02/2016 16:13, Parav Pandit wrote: >> +void ib_rdmacg_query_limit(struct ib_device *device, int *limits, int >> max_count) >> +{ >> + rdmacg_query_limit(&device->cg_device, limits); >> +} >> +EXPORT_SYMBOL(ib_rdmacg_query_limit); > >

Re: [PATCHv7 2/3] IB/core: added support to use rdma cgroup controller

2016-03-01 Thread Parav Pandit
On Tue, Mar 1, 2016 at 2:42 PM, Haggai Eran wrote: > On 28/02/2016 16:13, Parav Pandit wrote: >> diff --git a/drivers/infiniband/core/device.c >> b/drivers/infiniband/core/device.c >> index 00da80e..54ea8ce 100644 >> --- a/drivers/infiniband/core/device.c >> +++ b/drivers/infiniband/core/device.c

Re: [PATCHv7 2/3] IB/core: added support to use rdma cgroup controller

2016-03-01 Thread Haggai Eran
On 28/02/2016 16:13, Parav Pandit wrote: > diff --git a/drivers/infiniband/core/device.c > b/drivers/infiniband/core/device.c > index 00da80e..54ea8ce 100644 > --- a/drivers/infiniband/core/device.c > +++ b/drivers/infiniband/core/device.c > @@ -343,28 +343,38 @@ int ib_register_device(struct ib_d

Re: [PATCHv7 2/3] IB/core: added support to use rdma cgroup controller

2016-03-01 Thread Haggai Eran
On 28/02/2016 16:13, Parav Pandit wrote: > +void ib_rdmacg_query_limit(struct ib_device *device, int *limits, int > max_count) > +{ > + rdmacg_query_limit(&device->cg_device, limits); > +} > +EXPORT_SYMBOL(ib_rdmacg_query_limit); You can remove the max_count parameter here as well. -- To unsu

[PATCHv7 2/3] IB/core: added support to use rdma cgroup controller

2016-02-28 Thread Parav Pandit
Added support APIs for IB core to register/unregister every IB/RDMA device with rdma cgroup for tracking verbs and hw resources. IB core registers with rdma cgroup controller and also defines resources that can be accounted. Added support APIs for uverbs layer to make use of rdma controller. Added