From patchwork Wed Jun 17 14:43:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 190860 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp516282ilo; Wed, 17 Jun 2020 07:43:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVLB7/5O3FoPKAuLDNzqZyeFMypm18Kz0WkLti+XptWD70t4oBIbc9KQTX30L3cvYVLDno X-Received: by 2002:adf:9ccf:: with SMTP id h15mr8935968wre.275.1592405027461; Wed, 17 Jun 2020 07:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592405027; cv=none; d=google.com; s=arc-20160816; b=boL15BEVd3JiYPheY3Tw7PNv0Y0bQL35wb//n3ai6mOvB36d2MLLiA1LVQLj5c7ZNb AdTusbIhgEdsb3kcoXpiLIccUD0GCgxwz4iIyC+bTRkZLz2mGU7YhfB8pqcrTaG/XW2j RFqouitHL0q1OQTIZd+hx+n7SYjPqFHPxngLD3gJoVWsjfImntt/smSaP7lyE9gvi8b8 X+TkTfk2sTZ4yGVPMMS+D79clf5scQ+7pKNgm31dWwas7LOP54wjMGW17BeVzIhfduwt Aj5zha213bfu9hsF3CiiBDNdZhatHIfn1c5wCmtSGi9H1jMHyb5NJlxT5Snc50qO4ZP8 G0mQ== 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:references:in-reply-to :message-id:date:cc:to:from; bh=VhbH73rFKTzK8mgohocECnIC2IGUnejz5vZGhKl9tk4=; b=ZkbH1qFgzWSOb3xvpFY6jqnebCKRqy20WqqM0gccCYIPeFDodD/ULMGzGNXcpkOCVD BVIBooO9FpZl31/vXCogTUDUuD1cjqXuwMSbOyI19qH5GdmUhnjkM9UWq363Ng/zdM6A xZvj6B0Dk47zQPoiL4PnfVBJJzAj2tdnf7aeOQ7cZIa1cbstKBCNHdX1u2aQj0nGQeDs hb/hLo3AQXzwJTtLGBIZOeFf6AO8dcbovzjSmD650EQRXa3ORr0CNwYIeWVPpD2VW11y WX9XrXAOstmPzufWqAMHQP1un2uoPm0esYTtptxI48Qyp6VF2DxO/E1MwuAlkG7KJouJ QQDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id f24si6028928wml.35.2020.06.17.07.43.47; Wed, 17 Jun 2020 07:43:47 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E6F614CA7; Wed, 17 Jun 2020 16:43:46 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id A01861252; Wed, 17 Jun 2020 16:43:44 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 26C7731B; Wed, 17 Jun 2020 07:43:44 -0700 (PDT) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.12.27]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1CE833F73C; Wed, 17 Jun 2020 07:43:44 -0700 (PDT) From: Honnappa Nagarahalli To: dev@dpdk.org, honnappa.nagarahalli@arm.com, alialnu@mellanox.com, orgerlitz@mellanox.com, wenzhuo.lu@intel.com, beilei.xing@intel.com, bernard.iremonger@intel.com Cc: hemant.agrawal@nxp.com, jerinj@marvell.com, viacheslavo@mellanox.com, thomas@monjalon.net, ruifeng.wang@arm.com, phil.yang@arm.com, nd@arm.com, stable@dpdk.org Date: Wed, 17 Jun 2020 09:43:04 -0500 Message-Id: <20200617144307.9961-2-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200617144307.9961-1-honnappa.nagarahalli@arm.com> References: <20200617144307.9961-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH 2/5] app/testpmd: enable burst stats for flowgen mode rx path X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Enable missing burst stats for rx path for flowgen mode. Fixes: e9e23a617eb8 ("app/testpmd: add flowgen forwarding engine") Cc: stable@dpdk.org Signed-off-by: Honnappa Nagarahalli Reviewed-by: Phil Yang Reviewed-by: Ruifeng Wang --- app/test-pmd/flowgen.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1 Tested-by: Phil Yang diff --git a/app/test-pmd/flowgen.c b/app/test-pmd/flowgen.c index 4bd351e67..011887c61 100644 --- a/app/test-pmd/flowgen.c +++ b/app/test-pmd/flowgen.c @@ -111,6 +111,10 @@ pkt_burst_flow_gen(struct fwd_stream *fs) /* Receive a burst of packets and discard them. */ nb_rx = rte_eth_rx_burst(fs->rx_port, fs->rx_queue, pkts_burst, nb_pkt_per_burst); +#ifdef RTE_TEST_PMD_RECORD_BURST_STATS + fs->rx_burst_stats.pkt_burst_spread[nb_rx]++; +#endif + fs->rx_packets += nb_rx; for (i = 0; i < nb_rx; i++)