From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 76281A04B3; Wed, 25 Dec 2019 08:56:42 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5E2941BE94; Wed, 25 Dec 2019 08:56:42 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 03B3A1BE85 for ; Wed, 25 Dec 2019 08:56:40 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Dec 2019 23:56:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,353,1571727600"; d="scan'208";a="223373664" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga001.fm.intel.com with ESMTP; 24 Dec 2019 23:56:39 -0800 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 24 Dec 2019 23:56:39 -0800 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 24 Dec 2019 23:56:39 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.19]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.236]) with mapi id 14.03.0439.000; Wed, 25 Dec 2019 15:56:37 +0800 From: "Ma, LihongX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1] framework/pktgen_trex: reset traffic ports list when set new stream Thread-Index: AQHVuswX9XHGxempEESz2pxCUXmv16fKe/zA Date: Wed, 25 Dec 2019 07:56:35 +0000 Message-ID: References: <1577214533-21374-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1577214533-21374-1-git-send-email-lihongx.ma@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] framework/pktgen_trex: reset traffic ports list when set new stream X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" Tested-by:ma,lihong -----Original Message----- From: Ma, LihongX=20 Sent: Wednesday, December 25, 2019 3:09 AM To: dts@dpdk.org Cc: Ma, LihongX Subject: [dts][PATCH V1] framework/pktgen_trex: reset traffic ports list wh= en set new stream if use one port to transfer pkts after use multiple ports, the value self._= traffic_ports also have multiple port info in it, so reset the value when a= dd new stream to port. Signed-off-by: lihong --- framework/pktgen_trex.py | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py index 690d= 070..9e054f3 100644 --- a/framework/pktgen_trex.py +++ b/framework/pktgen_trex.py @@ -723,6 +723,7 @@ class TrexPacketGenerator(PacketGenerator): def _prepare_transmission(self, stream_ids=3D[], latency=3DFalse): ''' add one/multiple streams in one/multiple ports ''' port_config =3D {} + self._traffic_ports =3D [] for stream_id in stream_ids: stream =3D self._get_stream(stream_id) tx_port =3D stream['tx_port'] -- 2.7.4