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 4A09BA0487 for ; Wed, 3 Jul 2019 07:37:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3D38B1E20; Wed, 3 Jul 2019 07:37:03 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 57D981BE0 for ; Wed, 3 Jul 2019 07:37:01 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jul 2019 22:37:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,446,1557212400"; d="scan'208";a="247507195" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga001.jf.intel.com with ESMTP; 02 Jul 2019 22:36:59 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 2 Jul 2019 22:36:59 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.134]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.22]) with mapi id 14.03.0439.000; Wed, 3 Jul 2019 13:36:57 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1] update send_pakcet method to disperse pkts to all queues Thread-Index: AQHVMLm/hxml5ykEnUeXe/gbCuWr+Ka4YSsA Date: Wed, 3 Jul 2019 05:36:57 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAD9049@SHSMSX101.ccr.corp.intel.com> References: <1562060505-128268-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1562060505-128268-1-git-send-email-qimaix.xiao@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.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDI2ODhkODEtNjU5ZS00MjNhLThjYjAtNmEwOWJjZWU0YjQxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTVozTUpLaEZGWmZtc0VBOWt3VnhEbml3em9oXC9pN2pqTGNEbTVLbUVvUkkyM0NXbVNYbGE1S2VnV0NMWm1KZloifQ== 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] update send_pakcet method to disperse pkts to all queues 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 xiao,qimai > Sent: Tuesday, July 2, 2019 5:42 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1] update send_pakcet method to disperse pkts to a= ll > queues >=20 > update send_pakcet method to disperse pkts to all queues >=20 > Signed-off-by: xiao,qimai > --- > tests/TestSuite_runtime_vf_queue_number_kernel.py | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_runtime_vf_queue_number_kernel.py > b/tests/TestSuite_runtime_vf_queue_number_kernel.py > index 0dfac52..4232253 100644 > --- a/tests/TestSuite_runtime_vf_queue_number_kernel.py > +++ b/tests/TestSuite_runtime_vf_queue_number_kernel.py > @@ -133,9 +133,11 @@ class TestRuntimeVfQueueNumberKernel(TestCase): >=20 > def send_packet2different_queue(self, dts, src, iface, count): > self.tester.scapy_foreground() > - for i in range(count): > - pkt =3D 'sendp([Ether(dst=3D"%s", > src=3D"%s")/IP(src=3D"10.0.0.1",dst=3D"192.168.13.%d")/("test"*10)],iface= =3D"%s")' % ( > - dts, src, (i % 254) + 1, iface) > + for i in range(1,count+1): > + j =3D (i//255)%255 > + k =3D i%255 > + pkt =3D 'sendp([Ether(dst=3D"%s", > src=3D"%s")/IP(src=3D"192.168.%d.%d",dst=3D"192.168.13.%d")/("test"*10)],= iface=3D"% > s")' % ( > + dts, src, j,k,k, iface) > self.tester.scapy_append(pkt) > self.tester.scapy_execute() >=20 > -- > 2.17.1