From patchwork Fri Jun 26 22:09:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 191925 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp879098ilg; Fri, 26 Jun 2020 15:10:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkHihw5xcdxzLq2M6K1MugpvtLucNaFIw1Mx6s4IWEgvFQfVAhV/aY+VsNqGFE/QeOwu9k X-Received: by 2002:a17:906:4c48:: with SMTP id d8mr4194738ejw.331.1593209411991; Fri, 26 Jun 2020 15:10:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593209411; cv=none; d=google.com; s=arc-20160816; b=LjfV7FjyxxxT6/Lf+PKqxFlm3o5GO0JkLd+6c948/EcCHy7mGCHgaL6sskPEOEkoM4 WojpzE3IeTy4Sod/GWu4eeVL0+UHqbxkaen7ob+hFrMrD1Cf7p2cSmBGAcVzKc/M3REA SmWDEm5BkQnwigxHLLjwMHbwquCu9aw71DZ1c14dceHSLrMA3iIwwCJElvGCWclQo2uC iL8+1fSxyt/Ujrl9mzAC/mgXxpbQrBhHUxpg9Sae647+2R3+Txu0C7zIyEyY8dQzFWw6 xy7AA7rVE1ptXXvRQdfdM5nLrbdtnPJu8efuUBNoHtL43bQST3OP6FWs4RtSaiSGHvFU mcng== 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=BQki19TnL1TvmPP7+RE4ZlP57yzdboD/d/UWCJX5jno=; b=cJn3pATIJArNITP8d6LVyJw3YnpF3t1Xw3hTlv89R4mmnc8IyhQuhmjK1CulVLXiSj GJHo4u8CkAxdxeCCGL9pq3tOAleVHqQ420PQCN23l9Bliprq3p+pmVgTNVfy0i7wUTt4 GVOumcmyh1MkpyRFKGXqRwfSn6Lf7j9sXt99TxYUJjR6NJB5Z1inDRzwnY0h1B7vdfp8 aLpgMye0IbZF6GhRz0wsBIrIXKfgeZJ15jXOWCm6ujDR16gMZVPBz/7gIOHD0y9KUOzG SVadJfQT08KyjAKsWeE3v334i2mOHajWZxs7VRN1WOt1N1RcQqCD3Q4+ewC3zsGPA/dl f+nQ== 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 f15si8782598edt.552.2020.06.26.15.10.11; Fri, 26 Jun 2020 15:10:11 -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 D4D4E1BECC; Sat, 27 Jun 2020 00:10:02 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 9110C1BEA3; Sat, 27 Jun 2020 00:09:59 +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 10CD71042; Fri, 26 Jun 2020 15:09:59 -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 F0DBF3F6CF; Fri, 26 Jun 2020 15:09:58 -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, ferruh.yigit@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: Fri, 26 Jun 2020 17:09:40 -0500 Message-Id: <20200626220943.22526-2-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200626220943.22526-1-honnappa.nagarahalli@arm.com> References: <20200617144307.9961-1-honnappa.nagarahalli@arm.com> <20200626220943.22526-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v2 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 Tested-by: Phil Yang --- app/test-pmd/flowgen.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1 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++)