From patchwork Tue Oct 17 14:00:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 116121 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp4943992qgn; Tue, 17 Oct 2017 07:09:15 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SkKlvBLVR/7dlJUZh6cmWyIk2WxIfip+5vaaNIrnu4QdqiF9cSJ7WA9cTUzpta0rRneHLV X-Received: by 10.237.42.97 with SMTP id k30mr20238061qtf.184.1508249355020; Tue, 17 Oct 2017 07:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508249355; cv=none; d=google.com; s=arc-20160816; b=eBiXQaNs0b2KlecTq/E5ZFHkGyQr+4l3dtHdHau/aJltA4pmE3I4sluoJccImLZ2V8 hqJmXm9tAim821/P52Uem7nh2MWx7aO6RWiDZ48uHJ7aTcV50gUfOuGe7u+vfzSRkpfa +XTB2vs7BnKTgh20RqOzgfvf4hxJiDXBBlxjDKuNy1T1UdKOqt6HuKjt1Y8JQPTG6lDh NaeFqEf4FbGjQYNpkNE8oxhMAkHDPh5V31Z/ShxfQDBVeNzF/2mOcLFxqnFvK9xYBfQg 8eMklGYvGQpAmMPmbEvX5zKy2vcn2vr/xKotcoMu2ofGvRMtEGA2RlsFoToHPaoObI0O i7lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=n4Tf9gjo9bGjceXYNbAhx4ngDU+NEeWgZ9OouZptaHM=; b=B5IG4MR6oBsd3yE2cKEhGcIArcU1vo11NbxBUHYe67SByKtbIQ9FqKL00FFjIda4Y8 3qs4P4PEhQOCuVnOWr1Q3XzSo3jsz0QG6AgOAAgXitnHfs4uY67OTkyonMvl6+FIFIeZ xSJPR/N+WEm1zARkD06FnmdeinScCFovtHoiYiWj4WwybWu5HiQ9iqeC6ygjzWFD4DoN vhC9hjsEbaUSeOcbDKTkGtuB/CZg59tZ+6ClOq20c8p/hs4A+vXLk2c9y8axV2Eq00md BQBMSSSYNhKtLboDIcCZl5rrN1qm2cqBdCHyvcN3iI2mFkwN1JRoNcS+Um1pWDBDfaOd aXww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id o39si4172076qta.471.2017.10.17.07.09.14; Tue, 17 Oct 2017 07:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id B6A3262A6F; Tue, 17 Oct 2017 14:09:14 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, 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 CC51362953; Tue, 17 Oct 2017 14:01:24 +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 28F31628C3; Tue, 17 Oct 2017 14:00:33 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id 8AE90628BE for ; Tue, 17 Oct 2017 14:00:20 +0000 (UTC) Received: from mxback19j.mail.yandex.net (mxback19j.mail.yandex.net [IPv6:2a02:6b8:0:1619::95]) by forward105j.mail.yandex.net (Yandex) with ESMTP id CD7FA182A75 for ; Tue, 17 Oct 2017 17:00:17 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback19j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 06OnrDNFWI-0HL4NI5G; Tue, 17 Oct 2017 17:00:17 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id tTs7mS0qFy-0H4O0t1j; Tue, 17 Oct 2017 17:00:17 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 17 Oct 2017 17:00:07 +0300 Message-Id: <1508248809-4850-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508248809-4850-1-git-send-email-odpbot@yandex.ru> References: <1508248809-4850-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 234 Subject: [lng-odp] [PATCH API-NEXT v2 6/8] linux-gen: pool: implement max_num info 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Petri Savolainen Implemented max_num info for packet pools. Signed-off-by: Petri Savolainen --- /** Email created from pull request 234 (psavol:next-pool-param) ** https://github.com/Linaro/odp/pull/234 ** Patch: https://github.com/Linaro/odp/pull/234.patch ** Base sha: afeda4d14bb6f449cb269680cdbd56b26726eedf ** Merge commit sha: cc4142b7bb4d97ad57cb925e9fc4165f1ab3f663 **/ platform/linux-generic/odp_pool.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c index b0b1adafc..b8ab99d98 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -682,6 +682,9 @@ int odp_pool_info(odp_pool_t pool_hdl, odp_pool_info_t *info) info->name = pool->name; info->params = pool->params; + if (pool->params.type == ODP_POOL_PACKET) + info->pkt.max_num = pool->num; + return 0; }