From patchwork Fri Jan 22 18:24:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 60173 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp13558lbb; Fri, 22 Jan 2016 10:24:58 -0800 (PST) X-Received: by 10.140.230.68 with SMTP id a65mr5918205qhc.31.1453487098411; Fri, 22 Jan 2016 10:24:58 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a123si8299561qha.3.2016.01.22.10.24.54; Fri, 22 Jan 2016 10:24:58 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id CD01D617AB; Fri, 22 Jan 2016 18:24:54 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=I/i40BtU; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 41C69617EA; Fri, 22 Jan 2016 18:24:28 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 42E8D617BD; Fri, 22 Jan 2016 18:24:25 +0000 (UTC) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by lists.linaro.org (Postfix) with ESMTPS id 3206A61749 for ; Fri, 22 Jan 2016 18:24:24 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id b14so145505126wmb.1 for ; Fri, 22 Jan 2016 10:24:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=993+MM1lFVSFRC0Y1QkiZVlwhvQXY5KBygsQng4DdvY=; b=I/i40BtUXgQGWFpZdbBv6xecg41P0+V693GtN3ywCmC2hVbWG1lFcwcC3AP5XfkyZR /h2qWJFDItVChqIvA0w9Yn3AJCng2iInTS2H0M1/sL9RvMklFJhEN/Lr/U6SJL0C089Z wgV/aIcGfFz3c33dlPAd9UUQK0KpczC+GAhR4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=993+MM1lFVSFRC0Y1QkiZVlwhvQXY5KBygsQng4DdvY=; b=DhoU3aWuYN290vyE+qL0Zrr+B+iaCu3wk40sXGN3ON8sXk+AdSJhZ4hxxhU4zDcvzH WkpHo7B+ErLKiweRZ/D89JtqXSyRUdqJIlfMKM9q2m6zud9y17YjlsDe0mwT4bN22Rpm 90BrpEM/Mwxbz/ns5pmH9o8MLDxVIdPN51yD2I9RcA7Hz/b9boLgPBZwU6b2gOEADLR4 wie4DbP2FXrmAfrdl3Cb5mDyf+/bxkx7N60fV0tXEb3gKzJ+5C4w6X8zV7h7wwDFkP1d DuS7icksiu3yaZbjx7BUJ29lulqD9BcWYzHyjpXA5YImdMrgeE0uPKoXDSCyDPEkajNK p2vA== X-Gm-Message-State: AG10YORrb3bEPyCpJefC5TRGX4GQSx2+nlZ73AtM6lZrBReJjbcRFWUP54q4IIFHFKXQpf9OeMo= X-Received: by 10.28.186.87 with SMTP id k84mr4946464wmf.13.1453487063232; Fri, 22 Jan 2016 10:24:23 -0800 (PST) Received: from localhost.localdomain ([195.11.233.227]) by smtp.googlemail.com with ESMTPSA id z127sm4031879wme.2.2016.01.22.10.24.22 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jan 2016 10:24:22 -0800 (PST) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Fri, 22 Jan 2016 18:24:09 +0000 Message-Id: <1453487050-10913-2-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1453487050-10913-1-git-send-email-zoltan.kiss@linaro.org> References: <1453487050-10913-1-git-send-email-zoltan.kiss@linaro.org> X-Topics: patch Cc: Ola.Liljedahl@arm.com, petri.savolainen@nokia.com Subject: [lng-odp] [API-NEXT PATCH 1/2] api: pool: allow per-thread caching X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" This addition explicitly loses the requirement that a single thread should be able to allocate the whole pool even if nothing used it before. Therefore per-thread caches are allowed to retain some elements locally. Signed-off-by: Zoltan Kiss --- include/odp/api/pool.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index 2e79a55..deab963 100644 --- a/include/odp/api/pool.h +++ b/include/odp/api/pool.h @@ -43,6 +43,9 @@ extern "C" { /** * Pool parameters * Used to communicate pool creation options. + * @note A single thread may not be able to allocate all 'num' elements + * from the pool at any particular time, as other threads or hardware + * blocks are allowed to keep some for caching purposes. */ typedef struct odp_pool_param_t { /** Pool type */