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 1940AA04F1; Mon, 6 Jan 2020 09:40:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F2ACE1D5FF; Mon, 6 Jan 2020 09:40:45 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id AA58E1D5F9 for ; Mon, 6 Jan 2020 09:40:43 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jan 2020 00:40:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,401,1571727600"; d="scan'208";a="215137583" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga008.jf.intel.com with ESMTP; 06 Jan 2020 00:40:42 -0800 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 6 Jan 2020 00:40:42 -0800 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 6 Jan 2020 00:40:42 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 6 Jan 2020 00:40:41 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.30]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.55]) with mapi id 14.03.0439.000; Mon, 6 Jan 2020 16:40:40 +0800 From: "Ma, LihongX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1] framework/pktgen_trex: set core_mask length same with ports list length Thread-Index: AQHVxGzj1N6ZaAoIg0y9SYpRFBsnBqfdUQlA Date: Mon, 6 Jan 2020 08:40:40 +0000 Message-ID: References: <1578273166-16197-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1578273166-16197-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: set core_mask length same with ports list length 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: Monday, January 6, 2020 9:13 AM To: dts@dpdk.org Cc: Ma, LihongX Subject: [dts][PATCH V1] framework/pktgen_trex: set core_mask length same w= ith ports list length Signed-off-by: lihong --- framework/pktgen_trex.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py index 2ff5= 894..705d8f5 100644 --- a/framework/pktgen_trex.py +++ b/framework/pktgen_trex.py @@ -793,11 +793,13 @@ class TrexPacketGenerator(PacketGenerator): try: # clear the stats before injecting self._conn.clear_stats() + # 'core_mask' list must be the same length as 'ports' list + core_mask =3D self.core_mask[:len(self._traffic_ports)] # Start traffic on port(s) run_opt =3D { 'ports': self._traffic_ports, 'mult': rate_percent, - 'core_mask': self.core_mask, + 'core_mask': core_mask, 'force': True,} self.logger.info("begin traffic ......") self.logger.debug(run_opt) -- 2.7.4