From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F59ACA9EA0 for ; Mon, 28 Oct 2019 09:48:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CA79220B7C for ; Mon, 28 Oct 2019 09:48:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572256138; bh=42VmDfEquZCgObJJ4CaEDAA5yd+k92VX1ePkgUlWc64=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=Nl/6tjddcL36cXsyltf67Ejx47c5n0vHHYHKYrSFKeuc96rvrNO/LNmrNmqvdXGga 9Y3zIjL88VOhlaU4P4f4rw8i5MyG2HawhlBKZOspfm4a4WaZ3pOYr46UR+oKaCJwtm LptMhK5y0w0ovQ+hoJYCutkexXCS4+SMG/+hmg0g= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732601AbfJ1Js6 (ORCPT ); Mon, 28 Oct 2019 05:48:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:43432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730038AbfJ1Js6 (ORCPT ); Mon, 28 Oct 2019 05:48:58 -0400 Received: from localhost (unknown [77.137.89.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D7F50208C0; Mon, 28 Oct 2019 09:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572256137; bh=42VmDfEquZCgObJJ4CaEDAA5yd+k92VX1ePkgUlWc64=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J06OXCFjy6O2ja11vFLcnlHTQPAM0nEVj3JGxAZt+RamuZi3eKH7hz2zb1ek1zJ+0 BT0VU+XJIjmD4CasamNm0tET4NBxV74+/Ox/l3v8nYbD8xLTp2Qg//F2Ije6V2SCl2 FPo0XN4v3y10hwjo89UERxTmh//dXiuTKCjkmDAM= Date: Mon, 28 Oct 2019 11:48:50 +0200 From: Leon Romanovsky To: Yishai Hadas Cc: linux-rdma@vger.kernel.org, haggaie@mellanox.com, jgg@mellanox.com, maorg@mellanox.com Subject: Re: [PATCH rdma-core 2/6] verbs: custom parent-domain allocators Message-ID: <20191028094850.GB5146@unreal> References: <1572254099-30864-1-git-send-email-yishaih@mellanox.com> <1572254099-30864-3-git-send-email-yishaih@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1572254099-30864-3-git-send-email-yishaih@mellanox.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On Mon, Oct 28, 2019 at 11:14:55AM +0200, Yishai Hadas wrote: > From: Haggai Eran > > Extend the parent domain object with custom allocation callbacks that > can be used by user-applications to override the provider allocation. > > This can be used for example to add NUMA aware allocation. > > The new allocator receives context information about the parent domain, > as well as the requested size and alignment of the buffer. It also > receives a vendor-specific resource type code to allow customizing it > for specific resources. > > The allocator then allocates the memory or returns an > IBV_ALLOCATOR_USE_DEFAULT value to request that the provider driver use > its own allocation method. > > Signed-off-by: Haggai Eran > Signed-off-by: Yishai Hadas > --- > libibverbs/man/ibv_alloc_parent_domain.3 | 54 ++++++++++++++++++++++++++++++++ > libibverbs/verbs.h | 12 +++++++ > 2 files changed, 66 insertions(+) > It is unclear to me how and maybe it is not possible for this API. but I would expect any changes in public API be accompanied by relevant tests. Thanks