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 E88D1A0487 for ; Wed, 3 Jul 2019 09:19:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C1F04326D; Wed, 3 Jul 2019 09:19:06 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B1BE7F04 for ; Wed, 3 Jul 2019 09:19:04 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2019 00:19:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,446,1557212400"; d="scan'208";a="154667727" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga007.jf.intel.com with ESMTP; 03 Jul 2019 00:19:03 -0700 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 3 Jul 2019 00:19:03 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 3 Jul 2019 00:19:02 -0700 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.232]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.162]) with mapi id 14.03.0439.000; Wed, 3 Jul 2019 15:19:01 +0800 From: "Zhang, YanX A" 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/yJybWWofwEOp3TQAPojkSqa4fayA Date: Wed, 3 Jul 2019 07:19:00 +0000 Message-ID: <2C49E4B25FAD1D419F7564D633EF72E1F39111@SHSMSX105.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: 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] 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" Tested-by: Zhang, YanX A -----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 all= queues update send_pakcet method to disperse pkts to all queues Signed-off-by: xiao,qimai --- tests/TestSuite_runtime_vf_queue_number_kernel.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_runtime_vf_queue_number_kernel.py b/tests/Test= Suite_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.16= 8.%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 --=20 2.17.1