Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754956AbcCBLoL (ORCPT ); Wed, 2 Mar 2016 06:44:11 -0500 Received: from mail-am1on0057.outbound.protection.outlook.com ([157.56.112.57]:30624 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751144AbcCBLoF (ORCPT ); Wed, 2 Mar 2016 06:44:05 -0500 Authentication-Results: spf=pass (sender IP is 193.47.165.134) smtp.mailfrom=mellanox.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=pass action=none header.from=mellanox.com; Subject: Re: [PATCHv9 2/3] IB/core: added support to use rdma cgroup controller To: Parav Pandit , , , , , , , , , , , References: <1456859137-13646-1-git-send-email-pandit.parav@gmail.com> <1456859137-13646-3-git-send-email-pandit.parav@gmail.com> CC: , , , , , , , From: Haggai Eran Message-ID: <56D6CE50.6060200@mellanox.com> Date: Wed, 2 Mar 2016 13:28:16 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1456859137-13646-3-git-send-email-pandit.parav@gmail.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.0.52.254] X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CPI:193.47.165.134;IPV:NLI;CTRY:IL;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(199003)(189002)(479174004)(64126003)(19580405001)(86362001)(586003)(83506001)(4001350100001)(50466002)(92566002)(5001770100001)(47776003)(80316001)(189998001)(11100500001)(5008740100001)(2201001)(5004730100002)(2950100001)(23746002)(59896002)(230700001)(1220700001)(33656002)(87266999)(87936001)(19580395003)(36756003)(6806005)(4326007)(76176999)(6116002)(50986999)(77096005)(54356999)(2906002)(1096002)(65816999)(3846002)(81156009)(106466001)(5001960100004)(3940600001)(921003)(1121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j5Ah80X9dR+2z7H8Dq2rN2z7jhuKKtV7LpiV18HAw8mWhGajT8jl3pQOGFsdEl3iNJJJERFGolbBlerQepafmwCMp4fBraPzMUHCU20KbElwbBPkPKbvOVc+7KpzJe6D0lr6X50kSNMi0+xD2Vg0kfPQZAhveLYKFVx95zXwWcz/kmklaRm/p0gce+khEA82WlvFdiKqsnCEfTF/z6E+u9Ul9DRdNhX3qyrRnuzXObhVYl0v7eCGWMr7yOSyc5GcvR90aPYQxHmuZ2kae5ycg9RHLC0BV8WXuZ+ESb39joYit4akiQAvp40aXnlGIb/j4b+G/C022KrsDjA/Ca7A== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(8251501001);SRVR:AM3PR05MB468; X-MS-Office365-Filtering-Correlation-Id: e1e9a463-b25e-443e-da2a-08d3428dc6b3 X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB468;20:t8whK7gqMbq/HuDisspsqyRPeV4aeuGGk6J3tJNVV6VtGT2engZmgIzeU4yfKINVFL418TUk2H2Gmke4Eimu+Jua8PN5A1JYUcHzdlhxOkPSl0VolFOqABqQT5Fh5S5/ZkikBfoieRiI1Ha2u34ytEBv9yf++HRUhDhldfWTQ6fy0pM8lfpRfSRd00/PmWPE4mGS0T/EY+i3QmjVpHgf0aEaLDpZBOdr43RwP1DJEsSWob+/g7FsGsD9NR36OZY2uwXB2SSP097gZbkN1Se4txBlli5h1eFBX4hVinBZjpy6MZ6NNGoZMYzh3XVZ2ngUIxutn8t6P4aBwDg92Vn5cl3uJqsabVy3CfIFbabom7M+FuiUq/DjYTZ2UgONwVHX9hH3zHlSK4nXgMvK8gI7XtoZ+rUjZwzOBvb0izsVv9j7mlc0J7By8mimPjBIi5oUNVJf2qPeLjEG6iF8KFEq+1LFH1RC+v/kAch50otgJltgM+ub4yMbP+ErAQBohFUJ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(13015025)(13024025)(8121501046)(13018025)(5005006)(13023025)(13017025)(10201501046)(3002001);SRVR:AM3PR05MB468;BCL:0;PCL:0;RULEID:;SRVR:AM3PR05MB468; X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB468;4:r5V9Do+DGE83DPaUCEY8iMfQRijJCPUYOwXQ/nUDjG6563sJO56L87qpwSM7NQ0tqQ+t1Q9sNrfHWhB71MrQzkUykme1S9lNGz7pATEQy2n9xocRLnsAOOypYqcuGY6m6RXXoBpLIMSUJWhmFs1sNjXLYHwOTe1B+RsvM8G13MbH2lGAxFjhlzEsTE4LCO3QLD9DS681qSzGrHjdmALDTCwz1IrsLFZu78NtxBfbmTQEtEACRCpkuC1uHdyBQwvz7uHy3kFCzlrGUxDiNso6vf4LQgNjjO0jKofJLWOo+FIQYB8o18FzX1F3plqIgEWupacJjPZPnv9iet/ifXxmNL3bUM8XQ3f7LOgpZ2UeWY5XhDRc7JZndtHafl+t8fuehOqxQS4PZtZ4+37bZEGIMI/MDp0tSW2jwOD8HYV3EtgjR9iDfJf9IxHFNDfmKUcjHgQqP4SUlWYcst6otq8UEA== X-Forefront-PRVS: 086943A159 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;AM3PR05MB468;23:8lI9ZLvyfHtfbtxuvPX3JpHi814iOIBMLo9kIT?= =?Windows-1252?Q?nqN9J5SSnjHr/cI9xKUdDgrJCXEeQZLGXGB8nTl45PAGzhq9izzaMxVx?= =?Windows-1252?Q?JHMzfSNRkhuM/nC7God35puyHd4916z/kGxS/h2czEdBw+1dlkhAstAC?= =?Windows-1252?Q?3vAc25MR60Dv4fDuJVvz1bfuMXHKNH8lrtz7ltZ6KWCRXtV7XtRkgiaB?= =?Windows-1252?Q?HveuWhUb7vUrbG7IVsvXGf+0HalUJVWwjiHDyazsBvHr8jrub9cI3YLI?= =?Windows-1252?Q?GS8mLRtZABUCjiuumOgZiSaedUED/+w5tHSqvQNAbeonsFglHrpHKiiJ?= =?Windows-1252?Q?i+xmgAwgX7LctByoTCdoJcLYoO1UYxzJOKzfMwLatbPeyDSNTv9ssu35?= =?Windows-1252?Q?ZfLuRL2E2yEBdDqvSO32ZWMJEGcGDDCF6eT+Vz40sERN76fUUlf8bf7x?= =?Windows-1252?Q?dmh2fHYRx1xQsONNv+scA44kGbAALQ1d8dUcsTZCQ0/c4/kfAQqV8wkH?= =?Windows-1252?Q?jTcgQa/H//4vXq/wPtpNDlaREOFNwK5c6MkO7ch1Qhb1PtUwLt+h8KVW?= =?Windows-1252?Q?omOuU3HzWnAzioM3kHy/vwZPJq5Q+L8GskWBbHlBAhP1jPNgAthL8P5S?= =?Windows-1252?Q?84N25K6k8XwuavMoIThkg30sxmougIqab/6GkMSRalmr5UytYQlsFnQX?= =?Windows-1252?Q?ddg0czjw95NOlay81DDSj4uc4W5pxlhZqPHVerrYHz5+/GDfnXx21wvG?= =?Windows-1252?Q?0vOamngNRhNTQr6Q+Za9GWPPNLpyoRQqvGgDn+hSYPELutk78JA3Njbp?= =?Windows-1252?Q?egruSYkML62DJsuiS/JTz1brSjwY2g245INdsHMcN+nU3YNkslmdyEIi?= =?Windows-1252?Q?5MfDPrGkjfTH41375W3SQwbFMBDMPe1hAcVugNRxE3WQsiPc8nM5Jadz?= =?Windows-1252?Q?2oEL/4c683l1gLJpFri/QjhcP4aNArOknKwIBJj51/KE4lgVQoxMdFMr?= =?Windows-1252?Q?3kAZIqhsbaeQzQXxOIz1Xa83CNvhO6fYsDXAPY4c2vX81ngSgVXxwSsm?= =?Windows-1252?Q?ffQmM76sMzFnepeDv9DZywQD6pJrM88pG0ObXxVuNAmOQhdfbKsjZOR2?= =?Windows-1252?Q?izMHuTquML5Q48YeUeOSYD68gaZ1n6kb1+wV9BPdpdluWRTGUdqe+TFV?= =?Windows-1252?Q?zF5OAKFX4IhJB3XOewUOVNYm9UPvdV9t55eM/re2h50JLw08G/fLVQHc?= =?Windows-1252?Q?cNvIT6gGKZpSbjnqqh3CvNGqpYFCd+mmQQYN9Vgj9/fR6ccKniVp5K/g?= =?Windows-1252?Q?jOxyWOAd5vzz4tN3qip7229vJBUReUXtOyO/ILNV7Qpzk=3D?= X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB468;5:y/9W5EXESdwFKix/PykR41ZQTzrLghkgboyHYuvKJpjJDhIKJMPXZRO+Jl8GB2N+nx2TTzfrFepb12/+pyqAnH+8Hq/8aXwWIS1fQGFgV43L3rFtvUO7rtHpqEr7x6Epgljl8iKwrMsuWR1yVPflqg==;24:vbNkwA8vsate9OTZIakXGlSyJnh6ceZBhDPaY/PyDG9zv4q261uLH5rkPIM/F8fwir8/Q2vDAdo1cYAId5LSI0zaatn40mhhr1m6xbLLEdk= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2016 11:28:27.8997 (UTC) X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a652971c-7d2e-4d9b-a6a4-d149256f461b;Ip=[193.47.165.134];Helo=[mtlcas13.mtl.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR05MB468 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 684 Lines: 15 On 01/03/2016 21:05, Parav Pandit wrote: > 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 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 Looks good to me. Thanks. Reviewed-by: Haggai Eran