From patchwork Wed Mar 23 22:19:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 64279 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp297110lbc; Wed, 23 Mar 2016 15:19:43 -0700 (PDT) X-Received: by 10.140.108.229 with SMTP id j92mr6644526qgf.17.1458771582968; Wed, 23 Mar 2016 15:19:42 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 129si3980567qhr.40.2016.03.23.15.19.40; Wed, 23 Mar 2016 15:19:42 -0700 (PDT) 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 Received: by lists.linaro.org (Postfix, from userid 109) id 51F5F61841; Wed, 23 Mar 2016 22:19:40 +0000 (UTC) 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.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 10A5161838; Wed, 23 Mar 2016 22:19:37 +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 7B02161838; Wed, 23 Mar 2016 22:19:35 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by lists.linaro.org (Postfix) with ESMTPS id D284961806 for ; Wed, 23 Mar 2016 22:19:34 +0000 (UTC) Received: by mail-oi0-f45.google.com with SMTP id w20so39830824oia.2 for ; Wed, 23 Mar 2016 15:19:34 -0700 (PDT) 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=EIbfnJUprD5jVZcMYDfogvuZqebpoWIMa/YD6EIFakw=; b=bEtja9umUCAMCHAkcf6lYOLH0xAxAyZQLYobASqEvyiDq8YbHaNL2anp4GkqOYvtFQ kEeB2gQdAwAjGMaGgSHxqZW0q3aFsMXiG6TnQgoHjr0DWEyQzlCVNdCeMwOE3AD4Tiwc SxbaMbDfrTYM4+EMUySqFzzBkvTyQJKMSEPCQg96MqZgboEQVc4AtntWOnKI9ak2ZJyD d6S9YXFA6km5BfZEd9Jc+0ycT6Jo8jybSkuSqtONVa0Ignxi25xW9W62wVHHcwVyqz5B DZBzPjNJg2SPLzs+zhGoqYW4/HXzmCKg3U+jqkoHd2mPuwLqEtPaSpe7vyUSJsqvQRVX h1+A== X-Gm-Message-State: AD7BkJIoRa7n0VzP//zNvUxBW2yFLqY3AR+33ZXUec2O/dN1myNdBYJ56btD1ePl8pumI8wjNTA= X-Received: by 10.157.9.105 with SMTP id 96mr2708062otp.10.1458771574356; Wed, 23 Mar 2016 15:19:34 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id p203sm1330444oif.16.2016.03.23.15.19.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Mar 2016 15:19:33 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 23 Mar 2016 17:19:26 -0500 Message-Id: <1458771569-17717-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 1/4] 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/spec/pool.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h index 94a302e..819016e 100644 --- a/include/odp/api/spec/pool.h +++ b/include/odp/api/spec/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 @@ -51,6 +56,9 @@ typedef struct odp_pool_param_t { /** Pool type */ int type; + /** Socket ID for this pool for NUMA support */ + uint32_t socket_id; + union { struct { /** Number of buffers in the pool */