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 DFE12A04F0; Fri, 27 Dec 2019 07:33:33 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AE53D1BFEB; Fri, 27 Dec 2019 07:33:33 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 945F41BEE2 for ; Fri, 27 Dec 2019 07:33:31 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Dec 2019 22:33:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,362,1571727600"; d="scan'208";a="230303434" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga002.jf.intel.com with ESMTP; 26 Dec 2019 22:33:30 -0800 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 26 Dec 2019 22:33:29 -0800 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 26 Dec 2019 22:33:28 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.19]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.195]) with mapi id 14.03.0439.000; Fri, 27 Dec 2019 14:33:27 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] framework/pktgen_trex: reset traffic ports list when set new stream Thread-Index: AQHVuswk94Vk4c1ANkWdK2XMXNG3OafNiXZA Date: Fri, 27 Dec 2019 06:33:27 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB8ED89@SHSMSX101.ccr.corp.intel.com> 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: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > 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 > when set new stream >=20 > 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 valu= e when > add new stream to port. >=20 > Signed-off-by: lihong > --- > framework/pktgen_trex.py | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py index > 690d070..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