19 Jun, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this file is subject to the terms and conditions of version 2 of the
    gnu general public license see the file copying in the main
    directory of the linux distribution for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 5 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081200.872755311@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

19 Jan, 2019

1 commit

  • RDMA cgroup registration routine always returns success, so simplify
    function to be void and run clang formatter over whole CONFIG_CGROUP_RDMA
    art of core_priv.h.

    This reduces unwinding error path for regular registration and future net
    namespace change functionality for rdma device.

    Signed-off-by: Parav Pandit
    Signed-off-by: Leon Romanovsky
    Acked-by: Tejun Heo
    Signed-off-by: Jason Gunthorpe

    Parav Pandit
     

08 May, 2018

1 commit


11 Jan, 2017

2 commits

  • Fixed warning reported by kbuild test robot.
    When reading current resource usage value, when no resources are
    allocated, its possible that it can report a uninitialized value
    for current resource usage.
    This fix avoids it by initializing it to zero as no resource is
    allocated.

    Signed-off-by: Parav Pandit
    Signed-off-by: Tejun Heo

    Parav Pandit
     
  • Added rdma cgroup controller that does accounting, limit enforcement
    on rdma/IB resources.

    Added rdma cgroup header file which defines its APIs to perform
    charging/uncharging functionality. It also defined APIs for RDMA/IB
    stack for device registration. Devices which are registered will
    participate in controller functions of accounting and limit
    enforcements. It define rdmacg_device structure to bind IB stack
    and RDMA cgroup controller.

    RDMA resources are tracked using resource pool. Resource pool is per
    device, per cgroup entity which allows setting up accounting limits
    on per device basis.

    Currently resources are defined by the RDMA cgroup.

    Resource pool is created/destroyed dynamically whenever
    charging/uncharging occurs respectively and whenever user
    configuration is done. Its a tradeoff of memory vs little more code
    space that creates resource pool object whenever necessary, instead of
    creating them during cgroup creation and device registration time.

    Signed-off-by: Parav Pandit
    Signed-off-by: Tejun Heo

    Parav Pandit