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 9DE8BA2EFC for ; Wed, 18 Sep 2019 12:27:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 93ABB1C231; Wed, 18 Sep 2019 12:27:59 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 4B9CB1C21C for ; Wed, 18 Sep 2019 12:27:58 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Sep 2019 03:27:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,520,1559545200"; d="scan'208";a="202031808" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 18 Sep 2019 03:27:57 -0700 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; Wed, 18 Sep 2019 03:27:57 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 18 Sep 2019 03:27:41 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.89]) with mapi id 14.03.0439.000; Wed, 18 Sep 2019 18:27:40 +0800 From: "Tu, Lijuan" To: "Mo, YufengX" , "dts@dpdk.org" , "Wang, Yinan" , "Chen, Zhaoyan" , "Ma, LihongX" CC: "Mo, YufengX" Thread-Topic: [dts] [PATCH V1 1/1] framework/trex: ignore trex default dst mac setting Thread-Index: AQHVZIBvC8T4eSkjKkuwfZ9/iJhObqcxTl8Q Date: Wed, 18 Sep 2019 10:27:40 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB23D67@SHSMSX101.ccr.corp.intel.com> References: <20190906065909.11717-1-yufengx.mo@intel.com> <20190906065909.11717-2-yufengx.mo@intel.com> In-Reply-To: <20190906065909.11717-2-yufengx.mo@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-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYmNiNDVhOWMtM2JiOC00NDY4LWFkZDQtOTFlNTg5ZDUzZmQ1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibVwvR0tWenF0aGtOZ3BTb3lPazY5TVdFcXpaUnB4WVB0WFgySVF6TThZa210YlBRQ2dxM0F6bjlpdzFORnF3ZzAifQ== 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 1/1] framework/trex: ignore trex default dst mac setting 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 yufengmx > Sent: Friday, September 6, 2019 2:59 PM > To: dts@dpdk.org; Wang, Yinan ; Chen, Zhaoyan > ; Ma, LihongX > Cc: Mo, YufengX > Subject: [dts] [PATCH V1 1/1] framework/trex: ignore trex default dst mac > setting >=20 >=20 > set trex stream mac_dst_override_mode flag to be a STLStreamDstMAC_PKT > status to avoid dst mac changed. >=20 > Signed-off-by: yufengmx > --- > framework/pktgen_trex.py | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) >=20 > diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py index > 159750e..c6c904b 100644 > --- a/framework/pktgen_trex.py > +++ b/framework/pktgen_trex.py > @@ -221,7 +221,8 @@ class TrexConfigStream(object): > from trex_stl_lib.api import ( > STLTXCont, STLTXSingleBurst, STLTXMultiBurst, > STLPktBuilder, STLProfile, STLVM, > - STLStream, STLFlowLatencyStats) > + STLStream, STLStreamDstMAC_PKT, > + STLFlowLatencyStats) >=20 > # set trex class > self.STLStream =3D STLStream > @@ -232,6 +233,7 @@ class TrexConfigStream(object): > self.STLTXSingleBurst =3D STLTXSingleBurst > self.STLTXMultiBurst =3D STLTXMultiBurst > self.STLFlowLatencyStats =3D STLFlowLatencyStats > + self.STLStreamDstMAC_PKT =3D STLStreamDstMAC_PKT >=20 > def _set_var_default_value(self, config): > default =3D { > @@ -332,8 +334,10 @@ class TrexConfigStream(object): > raise Exception(msg) >=20 > pkt =3D self.STLPktBuilder(pkt=3D_pkt, vm=3Dvm) > - _stream =3D self.STLStream(packet=3Dpkt, mode=3Dmode_inst, isg= =3Disg, > - flow_stats=3Dflow_stats) > + _stream =3D self.STLStream( > + packet=3Dpkt, mode=3Dmode_inst, isg=3Disg, > + flow_stats=3Dflow_stats, > + mac_dst_override_mode=3Dself.STLStreamDstMAC_PKT) >=20 > return _stream >=20 > -- > 2.21.0