From patchwork Tue Oct 17 13:00:26 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: 116101 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp4885501qgn; Tue, 17 Oct 2017 06:19:18 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TJmiVxH3Ka+th+XMpomoXwXCTE3BsMUAPeE26muhpFIr1eq6rhrqOoHNrJWVKxOCMtf4jP X-Received: by 10.36.175.11 with SMTP id t11mr5615152ite.85.1508246358473; Tue, 17 Oct 2017 06:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508246358; cv=none; d=google.com; s=arc-20160816; b=rz8zYkfJHdfcuoCVH9AKxIv7UzGaX7u61T6Tw47CdVrCBrcyYxPh77aaTFfCvk/XKn vDt9BDDH+bF5wiSYHJ7KsTK9W74qQqgESNB3frnZ0MNBllW/kxQwtxZt0XFuP2zUv1DL T5H/ITlr9ZqnLyeSMV69l0LKdF1FTHae81mRtSVn+O+VBs4lan+HwHN/9A6/LGlPsav0 jmfSQkOD5oMly/jZbMrMxA9Qj/zto2XTStHMR5n8fFKYP6k7EbHWFZPfMjw5gRzUDMoq lVQwi9Radd+ErfssfpxhfqtjRCqprWV7KU4OBDyyL9JfQxEtKEB4ZR2kIc/oxF8nzsBI pQkg== 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=O8E8mpYJRnnZqxH7ARzpnqFFeL9IG1cjVpkshKWW4hY9unQBPtfY6wSFT+ARkule5k 1+jjoxjMIV+3XfnELio/G0rE1pRCnE254QfMy+VfSdrB2rkwnYJcg/yIu+XfqU7cc/1J hfVJc6+nCK+hK3ehtMEZQNbHRsEPNJF0kplKFBs+sFPd4GNfzpzxpewqIv9EAtSmrh5L I0NThRvF6ttethz5duknFs6A4jDTHLpyNjY4KUO+o5ehMKPwnz/HyX9dcW10pHL736Oo xQwzvHv7z75wAI2qdtR2BgviMnZ5GBJPHWx6rLkICRLlSTBVICV75K7QIVTtxvWRs4fu /tyg== 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 v15si7226290ioi.41.2017.10.17.06.19.18; Tue, 17 Oct 2017 06:19:18 -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 09A58629D6; Tue, 17 Oct 2017 13:19: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 A979062945; Tue, 17 Oct 2017 13:03:56 +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 46DFF62954; Tue, 17 Oct 2017 13:03:41 +0000 (UTC) Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [37.140.190.179]) by lists.linaro.org (Postfix) with ESMTPS id 7C8B861DE2 for ; Tue, 17 Oct 2017 13:00:37 +0000 (UTC) Received: from mxback6g.mail.yandex.net (mxback6g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:167]) by forward104o.mail.yandex.net (Yandex) with ESMTP id 7586E701565 for ; Tue, 17 Oct 2017 16:00:36 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback6g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id uQ86vvl3DW-0aiKi7NO; Tue, 17 Oct 2017 16:00:36 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id lxH8Glq2Gn-0a40fr6U; Tue, 17 Oct 2017 16:00:36 +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 16:00:26 +0300 Message-Id: <1508245228-16824-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508245228-16824-1-git-send-email-odpbot@yandex.ru> References: <1508245228-16824-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; }