From patchwork Fri Oct 27 08:00:10 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: 117302 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp477706qgn; Fri, 27 Oct 2017 01:05:52 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TcIBdIRG6Ikpc3GFm9T3t3sCWXm2wPEmjPRJ7uyXfrrpolu74dT5mT1eSpDBtyVy2HTxlz X-Received: by 10.36.207.87 with SMTP id y84mr1890467itf.21.1509091551887; Fri, 27 Oct 2017 01:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509091551; cv=none; d=google.com; s=arc-20160816; b=Pw1fkHEutAbRT7D3oWIRQz57ZbYgVKMgt5FedZCej7nlp68zUgA9d8vP0AvyWtJqR0 RvCYdSut+kQIxToTp4hebJ46urQLTQHhMWGqytGJ/K8cZuIgfm7QQJuNg8Ri6rROtZRJ aodgEAOZhwZezdFWeYmx6YbjYu1CvzA9/vSL2daFSuouq76wRBP11j4Xys1+enawStOV oeD4OBUAi9g7FvsrqY5+D+fffiKojpgheMp9QqyfCOUlKR3bcTME2rICYZSCoJO0ljKV 41Y0VDHfmnc6+/c8TnqLDV/6+3oD5mwLicM1FZm8jjBl23X7Vkhlp2xwI/QGDWswOvGT pmkg== 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=otoIBSAtBvjZq2gNjcLcmqiMcVpUgbWCxpSBA7TxPfU=; b=UFLjnZ2g/L8KqCwljF1lsiH6cO4EgRwfT+tpWA00mN+VLZvmgJuhTK3HATc2RrUqd2 NL1dsm7AQvqxJXNRSrbUTNRtH+/Lt/10iuLhsBRsc3Bb1ziTwUWyjzvx49cyLqzX1Vc7 IxqRHdnLorRj02zcg/wicyt2PZuIDCsPJEu03FfBAi0G6wgssVOBkrF2Hh0ztITK8geV CT+vd+h9YnYjqCJ2o/JAFKpO1LkobmPLztDw83goTPk5D1mTK8sZt0GPD3LVwZw1A63y AoNyc+cu0h/c8L43LYpjf4vGD493doTvz0FQyyHfNfnP6rzV4kDlqbQ/SOxviyOgHpYn /hUQ== 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 p2si3470760iof.271.2017.10.27.01.05.51; Fri, 27 Oct 2017 01:05:51 -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 76C3162975; Fri, 27 Oct 2017 08:05:51 +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=-4.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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 A1FD662966; Fri, 27 Oct 2017 08:01:39 +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 91D3561044; Fri, 27 Oct 2017 08:01:01 +0000 (UTC) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [5.45.198.246]) by lists.linaro.org (Postfix) with ESMTPS id AB98460996 for ; Fri, 27 Oct 2017 08:00:52 +0000 (UTC) Received: from mxback12g.mail.yandex.net (mxback12g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:91]) by forward103j.mail.yandex.net (Yandex) with ESMTP id 36F5334C6113 for ; Fri, 27 Oct 2017 11:00:51 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback12g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id tuFTzitDHp-0pDC9djB; Fri, 27 Oct 2017 11:00:51 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 5leQ09wrpf-0oJui8dh; Fri, 27 Oct 2017 11:00:50 +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: Fri, 27 Oct 2017 11:00:10 +0300 Message-Id: <1509091212-14398-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1509091212-14398-1-git-send-email-odpbot@yandex.ru> References: <1509091212-14398-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 234 Subject: [lng-odp] [PATCH API-NEXT v4 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: d61d32590d1772b70b8dcd0d0ec44d29029d7443 ** Merge commit sha: 436021e0a0bff8bda38fa420ebbc4545c97a7fc8 **/ 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 40114093a..326cc82a0 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -701,6 +701,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; }