From patchwork Mon Jan 25 08:43:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yufen.Mo" X-Patchwork-Id: 87177 X-Patchwork-Delegate: lijuan.tu@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 562ADA0A0B; Mon, 25 Jan 2021 09:51:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D9DC7140DC6; Mon, 25 Jan 2021 09:51:31 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 64361140DAC for ; Mon, 25 Jan 2021 09:51:30 +0100 (CET) IronPort-SDR: IbEbvDqZX/lvnmUDUsuvPmpcsTeZBfMmlXZLDgoGBBkKO65yYvMyTJKyEfkSaGt3DWEVcvUJgv EUpNa1HHnq0g== X-IronPort-AV: E=McAfee;i="6000,8403,9874"; a="241224369" X-IronPort-AV: E=Sophos;i="5.79,373,1602572400"; d="scan'208";a="241224369" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2021 00:51:28 -0800 IronPort-SDR: 4sHUcz88Ab/W1D/r4DecR/+DAfyqJNGFyoI7WWPAtmoRFtIHF/7MeJj4V3dbh/TYFTqJxvIIDN 6rLnaraQowpw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,373,1602572400"; d="scan'208";a="471978335" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga001.fm.intel.com with ESMTP; 25 Jan 2021 00:51:27 -0800 From: yufengmx To: dts@dpdk.org, lijuan.tu@intel.com Cc: yufengmx Date: Mon, 25 Jan 2021 16:43:48 +0800 Message-Id: <20210125084414.8503-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210125084414.8503-1-yufengx.mo@intel.com> References: <20210125084414.8503-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V1 01/27] framework/pktgen: return trex tx stats X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" support return tx_pps and tx_bps from pktgen.measure_throughput for trex. Signed-off-by: yufengmx --- framework/pktgen_trex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py index 8da0c849..c0b13428 100644 --- a/framework/pktgen_trex.py +++ b/framework/pktgen_trex.py @@ -1,6 +1,6 @@ # BSD LICENSE # -# Copyright(c) 2010-2019 Intel Corporation. All rights reserved. +# Copyright(c) 2010-2021 Intel Corporation. All rights reserved. # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -696,7 +696,7 @@ class TrexPacketGenerator(PacketGenerator): self.logger.debug(pformat(port_stats)) self.logger.debug(os.linesep.join(msg)) - return rx_bps, rx_pps + return (tx_bps, rx_bps), (tx_pps, rx_pps) def _loss_rate_stats(self, stream, stats): # tx packet