From patchwork Mon Oct 16 13:00:04 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: 115914 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3665685qgn; Mon, 16 Oct 2017 06:09:19 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TZZkjsX8yrsNRuYReKzXFYmvSNkdLDnwYZWYdXfsYJhyBERb0L6Za6EI3VfALY2/mh+3RM X-Received: by 10.200.1.136 with SMTP id x8mr14837338qtf.259.1508159359222; Mon, 16 Oct 2017 06:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508159359; cv=none; d=google.com; s=arc-20160816; b=fDWlD1qNFHlImeUTw6UAa27x4PX9T7OlTbZm/yYFNGf4+xZe9SOfdV/wHHisH3ZBBg tbY8JQ4G4YsXE8oGJwpj58zHOTjSVg3+v8i9xN7mPaAJHLxcRFiw1BndL0VZA5+ArZnC agjCXQkAas5ffW20uzWbskcNIx/OSZ6FoGc4fK68C0/pxEQ5agKqcIuJPJPaCGRZmzBO wLCKboSfp5AZZKaGVtL1BNVYSdYFF+Iqki/81YsF9qG/fK7AI2NpkDwvCLeg/ihGmFMH NQNyjCfD79OgVxpbN2lsjhoAx5nSzM4TrL0JNBWjemYW9viP+nN0u69TIo3uNeYMbGbQ KH2g== 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=3Fc/sQj9w+eQykcgPyBizT6BOCfRMCebVgH/22hpAlo=; b=GAtFYmIEje3G8G9Tr8GQKGboqKQu6WYMfa6Q59lbB2kODiNTg3vPSsd+7Ak4xPDYxz s1vkzKmA+fjgUrxfKk4BJscBnzz6bjCjt8BsRuuHP7vuTxqepo6sK3iw+OsNRFCluRRo nI9ilqQ3VSSXXR0UzvRmEqeyqNZUNhVtyRhInCvwTOYmffvBGUveA0RY1m5V18VCLqYa DfAb2ZaBV+2XCK8mM7MkHRZenxs6tIwleRMcgZvOeTl3liHYdfCi22SM17wYi3jMLmtZ pW8BPXHXIoZCYum2J4AbCBzgWnmzHHaw/zXnxvAVKMs0Jqguj3Cm/tDi3nux9kk8gThj IHVA== 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 d19si6281651qkg.484.2017.10.16.06.09.19; Mon, 16 Oct 2017 06:09:19 -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 DFAEC61009; Mon, 16 Oct 2017 13:09:18 +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,FREEMAIL_FROM, 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 6BDC560B4A; Mon, 16 Oct 2017 13:01:25 +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 3296F60AC0; Mon, 16 Oct 2017 13:01:21 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id AA44E6062F for ; Mon, 16 Oct 2017 13:00:21 +0000 (UTC) Received: from mxback1j.mail.yandex.net (mxback1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10a]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 2C2FB43016B2 for ; Mon, 16 Oct 2017 16:00:18 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback1j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ydatmui5wD-0IZqPAmU; Mon, 16 Oct 2017 16:00:18 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id AktaPQxe42-0HQWh7xx; Mon, 16 Oct 2017 16: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: Mon, 16 Oct 2017 16:00:04 +0300 Message-Id: <1508158805-5932-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508158805-5932-1-git-send-email-odpbot@yandex.ru> References: <1508158805-5932-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 234 Subject: [lng-odp] [PATCH API-NEXT v1 7/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: 54f5fc670a7c125b6b0098e34e68fe3b45875069 **/ 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; }