From patchwork Fri Jan 29 02:44:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 60770 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp853281lbb; Thu, 28 Jan 2016 18:44:57 -0800 (PST) X-Received: by 10.50.28.20 with SMTP id x20mr7405718igg.87.1454035497791; Thu, 28 Jan 2016 18:44:57 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id hu10si8683973igb.7.2016.01.28.18.44.55; Thu, 28 Jan 2016 18:44:57 -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 B36876673A; Fri, 29 Jan 2016 02:44: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=MCnV8oAf; 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_H2,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 4C10A6672A; Fri, 29 Jan 2016 02:44:50 +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 6CA006672D; Fri, 29 Jan 2016 02:44:48 +0000 (UTC) Received: from mail-ob0-f175.google.com (mail-ob0-f175.google.com [209.85.214.175]) by lists.linaro.org (Postfix) with ESMTPS id 4E73266721 for ; Fri, 29 Jan 2016 02:44:47 +0000 (UTC) Received: by mail-ob0-f175.google.com with SMTP id ny8so30915627obc.2 for ; Thu, 28 Jan 2016 18:44:47 -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; bh=9XtvvzYF4cJHSB9ZAZlTCiT9sf6Pl555ZNdndro7whQ=; b=MCnV8oAfmQAUbBntji6C0WMLTO1hMzn80eZP7/V2y5kwM+8bwND+n8H5nv+O6/3oj2 SqrtEzUOX7kyzbh9qGUisIiZowz1jh0TnUcTbs1YEbEblXwX7JMsi8awluZVjbJPl+x2 EkAGe0g7p/uxakA9ociszS2qf33/xcDKCCQaA= 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; bh=9XtvvzYF4cJHSB9ZAZlTCiT9sf6Pl555ZNdndro7whQ=; b=jIYA4TjxbrCocyTgVxJ+DnA76k3dC2d+8yf4Ox+yEfOA3AjlBbOyDKX+DScggmPeDo vZElg5UBneUESo8C3eft46d2zXxfxOf41GCpl+mahgrlIBBZNIldmDcK2tQaigL82IC5 nWp5vR2RX2jM332mxUAlBpyBbPemNCeaC/60yvsNZDsV3jHKwLpBFJ2M2wKPbrWVDKp2 C/gWHxGkwp8zhEf25sknBp9iqBlRyOSRfP5LxoSYQxLDJ5QA6gnpm2xv0TS6dIMbJBl+ Dfn5TmZ9UbGbP7urBWvjQ4v2EUOkp4FQW0s9A3vQcsp7MAXf749j0qwQ/UP8RnNAwRmb X8DA== X-Gm-Message-State: AG10YOTZL+WTZ3pQ8ONxgK/gZxLvX0i7vlzb///NDMuVUUAkWsU3H0EmRd9z7SXYSKVZ4ApRpSI= X-Received: by 10.182.87.194 with SMTP id ba2mr4952949obb.52.1454035486850; Thu, 28 Jan 2016 18:44:46 -0800 (PST) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id yr2sm506758obc.25.2016.01.28.18.44.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jan 2016 18:44:46 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 28 Jan 2016 20:44:39 -0600 Message-Id: <1454035480-21776-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: patch Subject: [lng-odp] [RFC API-NEXT PATCH 1/2] api: pool: add socket id parameter for numa support 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" Signed-off-by: Bill Fischofer --- include/odp/api/pool.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index 2e79a55..4ea0193 100644 --- a/include/odp/api/pool.h +++ b/include/odp/api/pool.h @@ -37,6 +37,11 @@ extern "C" { * Invalid pool */ +/** + * @def ODP_SOCKET_ID_ANY + * This pool can use any socket (NUMA support) + */ + /** Maximum queue name length in chars */ #define ODP_POOL_NAME_LEN 32 @@ -88,6 +93,9 @@ typedef struct odp_pool_param_t { uint32_t num; } tmo; }; + + /** Socket ID for this pool for NUMA support */ + uint32_t socket_id; } odp_pool_param_t; /** Packet pool*/