From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 9FE2710A3 for ; Fri, 24 Aug 2018 08:41:55 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Aug 2018 23:41:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,281,1531810800"; d="scan'208";a="68745852" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga006.jf.intel.com with ESMTP; 23 Aug 2018 23:40:45 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 23 Aug 2018 23:40:45 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 23 Aug 2018 23:40:43 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.205]) by shsmsx102.ccr.corp.intel.com ([169.254.2.226]) with mapi id 14.03.0319.002; Fri, 24 Aug 2018 14:40: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: AQHUOfRbzKHHxYLPAE2tHlK8JwmNoKTOdcLQ Date: Fri, 24 Aug 2018 06:40:40 +0000 Message-ID: <9AC1400278453341942179604C2BF126DF2D60@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: Fri, 24 Aug 2018 06:41:56 -0000 It needs to bind vf to vfio-pci.=20 This is the following code: for port in self.sriov_vfs_port: port.bind_driver(driver=3D"vfio-pci") -----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