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 DADDEA054E; Sat, 15 Feb 2020 11:22:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C5A151BDF8; Sat, 15 Feb 2020 11:22:13 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 616DEDE3 for ; Sat, 15 Feb 2020 11:22:11 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Feb 2020 02:22:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,444,1574150400"; d="scan'208";a="234728955" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 15 Feb 2020 02:22:09 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 15 Feb 2020 02:22:09 -0800 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 15 Feb 2020 02:22:09 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.222]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.98]) with mapi id 14.03.0439.000; Sat, 15 Feb 2020 18:22:07 +0800 From: "Tu, Lijuan" To: "dts@dpdk.org" Thread-Topic: [dts] [PATCH] framework/pktgen_ixia: enable mac continue from last value Thread-Index: AQHV4x6rG5TB4dbFoUSzN0W+MoN6KqgcDUaA Date: Sat, 15 Feb 2020 10:22:06 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBC8549@SHSMSX101.ccr.corp.intel.com> References: <1581704209-163164-1-git-send-email-lijuan.tu@intel.com> In-Reply-To: <1581704209-163164-1-git-send-email-lijuan.tu@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] framework/pktgen_ixia: enable mac continue from last value 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: Tu, Lijuan > Sent: Saturday, February 15, 2020 2:17 AM > To: dts@dpdk.org > Cc: Tu, Lijuan > Subject: [dts] [PATCH] framework/pktgen_ixia: enable mac continue from > last value >=20 > * enable dst/src mac continue from last value > because mac will always be start_mac if disable this option. > * fix the last stream judging condition. >=20 > Signed-off-by: Lijuan Tu > --- > framework/pktgen_ixia.py | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/framework/pktgen_ixia.py b/framework/pktgen_ixia.py index > 937e219..80c5cb5 100644 > --- a/framework/pktgen_ixia.py > +++ b/framework/pktgen_ixia.py > @@ -209,6 +209,11 @@ class Ixia(SSHConnection): > prefix, mac_= start)) > if step: > cmds.append('stream config -{0}Step {1}'.format(prefix, = step)) > + # if not enable ContinueFromLastValue, the mac will alwa= ys be > start_mac > + if prefix =3D=3D 'sa': > + cmds.append('stream config -enableSaContinueFromLast= Value > true') > + elif prefix =3D=3D 'da': > + cmds.append('stream config > + -enableDaContinueFromLastValue true') > if action: > cmds.append('stream config -{0}RepeatCounter {1}'.format= ( > prefix, addr_mode.get(ac= tion))) @@ -513,7 > +518,7 @@ class Ixia(SSHConnection): > break >=20 > # set commands at last stream > - if stream_id > 1: > + if stream_id >=3D self.stream_total[port_index]: > self.add_tcl_cmd("stream config -dma gotoFirst") > self.add_tcl_cmd("stream set %s %d" % (ixia_port, stream_id)= ) >=20 > -- > 1.8.3.1