From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6CC20A0C4D; Fri, 13 Aug 2021 10:06:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4CB8B41252; Fri, 13 Aug 2021 10:06:08 +0200 (CEST) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id 693F14123B for ; Fri, 13 Aug 2021 10:06:07 +0200 (CEST) Received: by mail-pj1-f46.google.com with SMTP id w13-20020a17090aea0db029017897a5f7bcso14862280pjy.5 for ; Fri, 13 Aug 2021 01:06:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xi7LfBKYdu+SkjmKDAy1O6SSZv80HnjO+DCqWdDYMaA=; b=J4gOrbQIwg+VWxMZHT87zKmuMRd7wUK+C17/fBiUSSseG8s36J8gwnj1LUmwdkxf/k LB0l50JokcohOIID5bOkjmwnicPquWjozI4xH9m3whcgVUs9YO6A5ctvU7l2qj4zL0Ae 83ws4vqtxyhQGX95PUilD8D3pvxhjTtoSsmV6WPlTb5kF0Dbb3GJAOS5VlVvNyXgVCSN QDmqb3XDY4eHZa2QEXNVedRtAoE7I0QdMUwDDqS+IGI9QEhMlbAcj2fsliZ8vB7/b44T 8MWjgpZzaucjEcW8UXDuc2ElB/5zrXp7HNUNXocqO0kEJeNhDElzddrFvWbraEYuGpkC lDXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xi7LfBKYdu+SkjmKDAy1O6SSZv80HnjO+DCqWdDYMaA=; b=Hx/6CiZTuN0WmvUaKniVNSzajZqVOb/4ZDj/4jI8JZG1iYeD2INJVILRele7alu60e /qqafYWj/4ga4KXzMaQTAA0IYP0E9YdSO9CqgjvX0DajN4PlKv2HTsPM6gLQY+k3GYM8 Zyr5cgw1opooAHBSlaPu/SQQ5InIWGjQAWXeZ6+fgZQo6n5GW/HN3KO6ay8y+vKKaj4x 6drwrtgI+DQvGfDf0IfnigOAy7BpSx4ziU9yJJ3uJjJwmThWXdpJFR3POOxHM47s8DU/ cXh9YQ32RUBcid83caHwA/ZvTJEai/yk9XWXl0AUQ8KiIsZd+QBTjcEBjw+H/YcGGSdC 9pRg== X-Gm-Message-State: AOAM533jADtRtytIcRSrXMR+izF4AhGiIVytOY09hqK2xvF9ReW/BvR4 rZyKsaw/gKhulfbc2gJYkXSbB2KtEEENoA== X-Google-Smtp-Source: ABdhPJzlR79JyYgHA5I8OxFlQjEksQVYe7jJWiT6k55felnEagsEyejpY2tgi4v9Vs62B8JdU88gog== X-Received: by 2002:a63:e00b:: with SMTP id e11mr1311115pgh.190.1628841966422; Fri, 13 Aug 2021 01:06:06 -0700 (PDT) Received: from C02D70YZMD6R.bytedance.net ([139.177.225.227]) by smtp.gmail.com with ESMTPSA id 17sm1118192pjd.3.2021.08.13.01.06.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Aug 2021 01:06:05 -0700 (PDT) From: Zhihong Wang To: dev@dpdk.org, ferruh.yigit@intel.com, xiaoyun.li@intel.com, aman.deep.singh@intel.com, irusskikh@marvell.com, cchemparathy@tilera.com Cc: Zhihong Wang Date: Fri, 13 Aug 2021 16:05:47 +0800 Message-Id: <20210813080548.38637-4-wangzhihong.wzh@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20210813080548.38637-1-wangzhihong.wzh@bytedance.com> References: <20210809062548.30187-1-wangzhihong.wzh@bytedance.com> <20210813080548.38637-1-wangzhihong.wzh@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v5 3/4] app/testpmd: record rx_burst and fwd_dropped in flowgen X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Call inc_rx_burst_stats for rx operation, and record fwd_dropped. Signed-off-by: Zhihong Wang Acked-by: Xiaoyun Li --- app/test-pmd/flowgen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test-pmd/flowgen.c b/app/test-pmd/flowgen.c index 96d0cc79df..229794ee9c 100644 --- a/app/test-pmd/flowgen.c +++ b/app/test-pmd/flowgen.c @@ -87,6 +87,7 @@ 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); + inc_rx_burst_stats(fs, nb_rx); fs->rx_packets += nb_rx; for (i = 0; i < nb_rx; i++) @@ -186,6 +187,7 @@ pkt_burst_flow_gen(struct fwd_stream *fs) while (next_flow < 0) next_flow += cfg_n_flows; + fs->fwd_dropped += nb_pkt - nb_tx; do { rte_pktmbuf_free(pkts_burst[nb_tx]); } while (++nb_tx < nb_pkt); -- 2.11.0