Message ID | 1445001927-13916-3-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDX25FHYWQNBBG7WQOYQKGQEECSHTRQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 9E44722EAC for <linaro@patches.linaro.org>; Fri, 16 Oct 2015 13:26:52 +0000 (UTC) Received: by wibzt1 with SMTP id zt1sf2591209wib.0 for <linaro@patches.linaro.org>; Fri, 16 Oct 2015 06:26:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=RH1uPlshrB1mUURon9jJ9aCF9z22c5cJZwyFdK16CVs=; b=MuIb19s8nUKNrS6Tetqjfv+DYsr85/KGwfYzPAoL3Ue8FIsiwy9l9aUkufYSaeAAg9 AYO7HEyzOoa8CIwAliNT1twRL5S9YfwLBXTmWTvdkri0JYd7Q56iQnRrzyhpWuUdpOHo z2o5qLQByEy+Sep3QPBlgYk7R7bGExtsQ52V0VLT5YdlMdrfmby3xg7r+HQXGEs5xpwB TsY7iVQ1P/LxJZkscZlJbTIqLtL0MJ+Bg3sAfJ5eQINoLL5Cc+Tl04nNzlUgvasCiVFl V8upuuDER55h2hOTBYojk5UYSyO+ijCzV6qqcEq7v0cPogvHadQuFDG/MzVNX86Xbny4 9NHg== X-Gm-Message-State: ALoCoQlTbJ4zqVgtt4O+FTR4aSglHQP1EpkZyjvvX+lHgcAuR8croe0P6wDrBYuSHhknUN057Obw X-Received: by 10.112.198.33 with SMTP id iz1mr3587152lbc.8.1445002011968; Fri, 16 Oct 2015 06:26:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.90.85 with SMTP id o82ls282646lfb.98.gmail; Fri, 16 Oct 2015 06:26:51 -0700 (PDT) X-Received: by 10.112.155.195 with SMTP id vy3mr8361233lbb.9.1445002011826; Fri, 16 Oct 2015 06:26:51 -0700 (PDT) Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com. [2a00:1450:4010:c07::235]) by mx.google.com with ESMTPS id pq6si12908763lbb.61.2015.10.16.06.26.51 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Oct 2015 06:26:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c07::235 as permitted sender) client-ip=2a00:1450:4010:c07::235; Received: by lffv3 with SMTP id v3so80060700lff.0 for <patchwork-forward@linaro.org>; Fri, 16 Oct 2015 06:26:51 -0700 (PDT) X-Received: by 10.25.145.132 with SMTP id t126mr5444578lfd.88.1445002011716; Fri, 16 Oct 2015 06:26:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1288795lbq; Fri, 16 Oct 2015 06:26:50 -0700 (PDT) X-Received: by 10.140.152.134 with SMTP id 128mr19988679qhy.65.1445002009946; Fri, 16 Oct 2015 06:26:49 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 67si17853484qgl.124.2015.10.16.06.26.49; Fri, 16 Oct 2015 06:26:49 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 97A4D61D67; Fri, 16 Oct 2015 13:26:49 +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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 D9EFD62C33; Fri, 16 Oct 2015 13:25:41 +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 D26DB62C1E; Fri, 16 Oct 2015 13:25:36 +0000 (UTC) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by lists.linaro.org (Postfix) with ESMTPS id 1878361B6B for <lng-odp@lists.linaro.org>; Fri, 16 Oct 2015 13:25:35 +0000 (UTC) Received: by lfaz124 with SMTP id z124so79542219lfa.1 for <lng-odp@lists.linaro.org>; Fri, 16 Oct 2015 06:25:33 -0700 (PDT) X-Received: by 10.25.26.146 with SMTP id a140mr5497884lfa.31.1445001933926; Fri, 16 Oct 2015 06:25:33 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-161-180.pppoe.mtu-net.ru. [91.76.161.180]) by smtp.gmail.com with ESMTPSA id lc3sm2846571lbc.3.2015.10.16.06.25.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Oct 2015 06:25:33 -0700 (PDT) From: Maxim Uvarov <maxim.uvarov@linaro.org> To: lng-odp@lists.linaro.org Date: Fri, 16 Oct 2015 16:25:27 +0300 Message-Id: <1445001927-13916-3-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445001927-13916-1-git-send-email-maxim.uvarov@linaro.org> References: <1445001927-13916-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv4 2/2] api: pktio statistics: define start and stop X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <https://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" <lng-odp-bounces@lists.linaro.org> X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c07::235 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/include/odp/api/packet_io_stats.h b/include/odp/api/packet_io_stats.h index 94af18c..73db34c 100644 --- a/include/odp/api/packet_io_stats.h +++ b/include/odp/api/packet_io_stats.h @@ -156,6 +156,26 @@ int odp_pktio_stats(odp_pktio_t pktio, int odp_pktio_stats_reset(odp_pktio_t pktio, odp_pktio_stats_mask_t mask); /** + * Start statistics for pktio handle + * + * @param pktio Packet IO handle + * @retval 0 on success + * @retval <0 on failure + * + */ +int odp_pktio_stats_start(odp_pktio_t pktio); + +/** + * Stop statistics for pktio handle + * + * @param pktio Packet IO handle + * @retval 0 on success + * @retval <0 on failure + * + */ +int odp_pktio_stats_stop(odp_pktio_t pktio); + +/** * @} */
Define pktio stats start/stop functions for case when same statistic module is used by different pktios, so if it's used for one of them it cannot be used by other, to allow it for first it should be disable for second. For instance 2 statistic modules are shared between 4 eth ports, etc. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- include/odp/api/packet_io_stats.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)