From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id BE6752BF7 for ; Wed, 22 Aug 2018 11:05:00 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Aug 2018 02:04:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,273,1531810800"; d="scan'208";a="65106099" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga008.fm.intel.com with ESMTP; 22 Aug 2018 02:04:44 -0700 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 22 Aug 2018 02:04:43 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 22 Aug 2018 02:04:42 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.205]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.240]) with mapi id 14.03.0319.002; Wed, 22 Aug 2018 17:04:41 +0800 From: "Han, YingyaX" To: "Tu, Lijuan" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V1]tests/runtime_queue_number: fix the problem of sending packets and modprobe vfio-pci Thread-Index: AQHUOfRbzKHHxYLPAE2tHlK8JwmNoKTLea3w Date: Wed, 22 Aug 2018 09:04:40 +0000 Message-ID: <9AC1400278453341942179604C2BF126DF1914@SHSMSX101.ccr.corp.intel.com> References: <1534919240-127455-1-git-send-email-yingyax.han@intel.com> <8CE3E05A3F976642AAB0F4675D0AD20EEAAAF1@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <8CE3E05A3F976642AAB0F4675D0AD20EEAAAF1@SHSMSX101.ccr.corp.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]tests/runtime_queue_number: fix the problem of sending packets and modprobe vfio-pci 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: , X-List-Received-Date: Wed, 22 Aug 2018 09:05:01 -0000 I'll retest it . Thank you -----Original Message----- From: Tu, Lijuan=20 Sent: Wednesday, August 22, 2018 4:45 PM To: Han, YingyaX ; dts@dpdk.org Cc: Han, YingyaX Subject: RE: [dts] [PATCH V1]tests/runtime_queue_number: fix the problem of= sending packets and modprobe vfio-pci Comments inline > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of han,yingya > Sent: Wednesday, August 22, 2018 2:27 PM > To: dts@dpdk.org > Cc: Han, YingyaX > Subject: [dts] [PATCH V1]tests/runtime_queue_number: fix the problem=20 > of sending packets and modprobe vfio-pci >=20 > 256 exceeded the IP address range. >=20 > Signed-off-by: han,yingya > --- > tests/TestSuite_runtime_queue_number.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_runtime_queue_number.py > b/tests/TestSuite_runtime_queue_number.py > index 44aec06..7d7bc5b 100644 > --- a/tests/TestSuite_runtime_queue_number.py > +++ b/tests/TestSuite_runtime_queue_number.py > @@ -90,6 +90,7 @@ class TestRuntime_Queue_Number(TestCase): > # assigned number of VFs > self.dut.generate_sriov_vfs_by_port(self.dut_ports[0],=20 > vfs_num, > self.drivername) > self.sriov_vfs_port =3D > self.dut.ports_info[self.dut_ports[0]]['vfs_port'] > + self.dut.send_expect('modprobe vfio-pci', '#') [Lijuan] if vf doesn't use vfio, there is no need to insmod vfio-pci >=20 > try: > for port in self.sriov_vfs_port: > @@ -125,7 +126,7 @@ class TestRuntime_Queue_Number(TestCase): > """ > self.tester.scapy_foreground() > time.sleep(2) > - for i in range(256): > + for i in range(254): > packet =3D r'sendp([Ether(dst=3D"%s",=20 > src=3Dget_if_hwaddr("%s"))/IP(src=3D"192.168.0.%d", dst=3D"192.168.0.%d")= ],=20 > iface=3D"%s")' % ( > self.vf_mac, itf, i + 1, i + 2, itf) > self.tester.scapy_append(packet) @@ -160,7 +161,7 @@=20 > class TestRuntime_Queue_Number(TestCase): > m =3D scanner.search(line) > packet_rec =3D m.group(1) >=20 > - self.verify(packet_sumnum =3D=3D int(packet_rec) =3D=3D 256, "Th= ere are > some packets lost.") > + self.verify(packet_sumnum =3D=3D int(packet_rec) =3D=3D 254, "Th= ere=20 > + are some packets lost.") >=20 > def test_set_valid_vf_max_qn(self): > """ > -- > 1.9.3