Message ID | 1508760010-14064-7-git-send-email-odpbot@yandex.ru |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4577708qgn; Mon, 23 Oct 2017 05:17:12 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TNbS7Cb+MFQ5zZUahnjI6fzY8ajX9l+36rRrMT88olHUeSv6sBAnfcoxPwxN+0oLvb6Kbr X-Received: by 10.200.41.174 with SMTP id 43mr8901447qts.86.1508761032434; Mon, 23 Oct 2017 05:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508761032; cv=none; d=google.com; s=arc-20160816; b=xta8FzH364ZyoVSqVr9QFpyLujFFdZtUxAeE43+vvdZ6yC8KFTWQLKThZZp7y1fExv qM8hn3nYOAez0M8LnUU9oPWKjWIkvFsefQtDc+/c052ihIe4ZmwHG5wOzf3k3sb5KCVz Pl+8UHrCMh0XbrdfvPLpSmy/Qc6U4Q+XLlUNrCB6InrV0Ug4McOqCy3sUrTQKS7kRSR+ UIz55+OLQ1XNVT4yZRHkDBaRrEP6U7+bikzO3zBHxqu0Wa51TRbpVU9O9eM8e0IryZC4 TcaoxUlMHXqKveDcZfdFbkSRLGOejXc26L6GIrxib+iSUke/Y5BJ35TzwOQT+2ZFIn4E 2ugA== 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=tMO732Vv8/PM5NG78o3nJRDWiAkA+vyu1LqBE7y/VFU=; b=K1lwDhGYM6i86GWUIp3vwb/txzmALWydmv8yNb9zg3Ew4F+FPaZ8D4Zl+2eOG8mF9f s2/vFOHsUGMChN0him/4ncLwodSNRqz8Dpq1YZnj9reQxTbgIUWMOCCHZ+qaV4WTHw4l HhfehcDT9fu9PdqTwBrfZyEuPrhdv68L8ovZnQ+IPvRTboGlFpQIAfiMbA+XEUFgIcoJ U0lCW+VOzaWY+et/2O9m2j6ZBzguIIzOaPxYD2l8jDxmVumnLJa8rYivJIn/cJurLCyu SqxSrQVfAG9+oljMLiJp5QqXVJY5iZmjL748zUVMXfXlVeWXvYKuMXQCISJgwkmNsGSB gMDQ== 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: <lng-odp-bounces@lists.linaro.org> 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 w45si1546144qta.387.2017.10.23.05.17.12; Mon, 23 Oct 2017 05:17:12 -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 1D899608B6; Mon, 23 Oct 2017 12:17:12 +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=-5.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, 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 44F626286D; Mon, 23 Oct 2017 12:13:49 +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 1C44962291; Mon, 23 Oct 2017 12:13:39 +0000 (UTC) Received: from forward103o.mail.yandex.net (forward103o.mail.yandex.net [37.140.190.177]) by lists.linaro.org (Postfix) with ESMTPS id 1FAB662983 for <lng-odp@lists.linaro.org>; Mon, 23 Oct 2017 12:00:33 +0000 (UTC) Received: from mxback20j.mail.yandex.net (mxback20j.mail.yandex.net [IPv6:2a02:6b8:0:1619::114]) by forward103o.mail.yandex.net (Yandex) with ESMTP id B9F455884FB4 for <lng-odp@lists.linaro.org>; Mon, 23 Oct 2017 15:00:31 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback20j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id uby0NfDc8J-0VjuRKoF; Mon, 23 Oct 2017 15:00:31 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 7orkcctvL2-0Ut0dJ8S; Mon, 23 Oct 2017 15:00:30 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot <odpbot@yandex.ru> To: lng-odp@lists.linaro.org Date: Mon, 23 Oct 2017 15:00:08 +0300 Message-Id: <1508760010-14064-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508760010-14064-1-git-send-email-odpbot@yandex.ru> References: <1508760010-14064-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 234 Subject: [lng-odp] [PATCH API-NEXT v3 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" <lng-odp.lists.linaro.org> List-Unsubscribe: <https://lists.linaro.org/mailman/options/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=unsubscribe> List-Archive: <http://lists.linaro.org/pipermail/lng-odp/> List-Post: <mailto:lng-odp@lists.linaro.org> List-Help: <mailto:lng-odp-request@lists.linaro.org?subject=help> List-Subscribe: <https://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" <lng-odp-bounces@lists.linaro.org> |
Series |
[API-NEXT,v3,1/8] api: pool: relax packet pool param num
|
expand
|
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; }