From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9C49FA034D; Sat, 29 Jan 2022 05:17:34 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7239640143; Sat, 29 Jan 2022 05:17:34 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id D808740041 for ; Sat, 29 Jan 2022 05:17:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643429853; x=1674965853; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=9ltJn2uGAg+emXKvW10zjSsGTj32hBdStH2oIuLpWdg=; b=RMqJBD9exb+JtyDdGim9MfusjegOdn9SDSuaEzeFR05GDwQyzMledSga zBydmrNQV8OPPPE02iwtQg3SLGTNC2SijVxYrtym8Cz7e2bTvEiyPLaat VqrvBQrKhYDmK27pYft2nWcsWi2Wc2ZXPv4yaQpKd+kMWYXZcpwXWzb6J iN0SNvciV5bI2oMMxVfeagSszmDw4MYIF2myPZl79Dqg6gtI6F3Ec6HS5 DahzrsgTln3zCxG9Q7noJOcwk7QzwMWCOAnqnIgFgoks4XPpXFQwZxU9Y BfHX9K1v2DnYCL50JtRv1Qe0Tv/lxd5cqh/k3ifS5I8M3D2fr48xhquh7 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10241"; a="246080489" X-IronPort-AV: E=Sophos;i="5.88,326,1635231600"; d="scan'208";a="246080489" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2022 20:17:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,326,1635231600"; d="scan'208";a="697299861" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga005.jf.intel.com with ESMTP; 28 Jan 2022 20:17:31 -0800 Received: from shsmsx604.ccr.corp.intel.com (10.109.6.214) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 28 Jan 2022 20:17:31 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX604.ccr.corp.intel.com (10.109.6.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Sat, 29 Jan 2022 12:17:29 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2308.020; Sat, 29 Jan 2022 12:17:29 +0800 From: "Tu, Lijuan" To: "Ling, WeiX" , "dts@dpdk.org" CC: "Ling, WeiX" Subject: RE: [dts][PATCH V2 2/2] tests/vf_interrupt_pmd: remove change DPDK code steps Thread-Topic: [dts][PATCH V2 2/2] tests/vf_interrupt_pmd: remove change DPDK code steps Thread-Index: AQHYDQnbmmPeZt7a7U2uPRzkmSzHT6x5aa/Q Date: Sat, 29 Jan 2022 04:17:28 +0000 Message-ID: References: <20220119075437.919618-1-weix.ling@intel.com> In-Reply-To: <20220119075437.919618-1-weix.ling@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.200.16 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 It sleeps 3 seconds, that doesn't make sense to me. If some causes are specified with igb_uio, it should be add to support list= . Thanks. > -----Original Message----- > From: Wei Ling > Sent: 2022=1B$BG/=1B(B1=1B$B7n=1B(B19=1B$BF|=1B(B 15:55 > To: dts@dpdk.org > Cc: Ling, WeiX > Subject: [dts][PATCH V2 2/2] tests/vf_interrupt_pmd: remove change DPDK > code steps >=20 > v1: > Remove change DPDK code steps. > v2: > Add insmod igb_uio driver step in test_nic_interrupt_PF_igb_uio case. >=20 > Signed-off-by: Wei Ling > --- > tests/TestSuite_vf_interrupt_pmd.py | 22 ++++++---------------- > 1 file changed, 6 insertions(+), 16 deletions(-) >=20 > diff --git a/tests/TestSuite_vf_interrupt_pmd.py > b/tests/TestSuite_vf_interrupt_pmd.py > index aff1f35a..3f2a77d8 100644 > --- a/tests/TestSuite_vf_interrupt_pmd.py > +++ b/tests/TestSuite_vf_interrupt_pmd.py > @@ -44,7 +44,6 @@ from framework.packet import Packet from > framework.test_case import TestCase from framework.virt_common import > VM >=20 > - > class TestVfInterruptPmd(TestCase): > supported_vf_driver =3D ['pci-stub', 'vfio-pci'] >=20 > @@ -88,11 +87,8 @@ class TestVfInterruptPmd(TestCase): >=20 > def prepare_l3fwd_power(self, use_dut): > """ > - Change the DPDK source code and recompile > + Compile dpdk-l3fwd-power > """ > - use_dut.send_expect( > - "sed -i -e '/DEV_RX_OFFLOAD_CHECKSUM,/d' \ > - ./examples/l3fwd-power/main.c", "#", 10) > out =3D use_dut.build_dpdk_apps("./examples/l3fwd-power") > self.path =3D use_dut.apps_name['l3fwd-power'] > self.verify("Error" not in out, "compilation error") @@ -101,15 = +97,18 @@ > class TestVfInterruptPmd(TestCase): > """ > Send a packet and verify > """ > + time.sleep(3) > pkt =3D Packet(pkt_type=3D'UDP') > pkt.config_layer('ether', {'dst': mac, 'src': self.tester_mac}) > pkt.send_pkt(self.tester, tx_port=3Dtestinterface) > self.out2 =3D use_dut.get_session_output(timeout=3D2) >=20 > + > def send_packet_loop(self, mac, testinterface, use_dut, ip_addr): > """ > Send a packet and verify > """ > + time.sleep(3) > pkt =3D Packet(pkt_type=3D'UDP') > pkt.config_layer('ether', {'dst': mac, 'src': self.tester_mac}) > pkt.config_layer('ipv4', {'dst': '2.1.1.5', 'src': '2.1.1.%s' % = ip_addr}) @@ - > 297,6 +296,8 @@ class TestVfInterruptPmd(TestCase): > """ > self.prepare_l3fwd_power(self.dut) >=20 > + self.dut.setup_modules_linux(self.target, 'igb_uio', '') > + > self.dut.ports_info[0]['port'].bind_driver(driver=3D'igb_uio') >=20 > self.begin_l3fwd_power(self.dut) @@ -362,17 +363,6 @@ class > TestVfInterruptPmd(TestCase): > config_info +=3D '(0,%d,%d)' % (queue, queue) > cmd =3D self.path + "-c %s -n 4 -- -P -p 0x1" % core_mask_user += " -- > config=3D'%s'" % config_info > self.vm0_dut.send_expect(cmd, "L3FWD_POWER", 60) > - time.sleep(1) > - try: > - self.logger.info("Launch l3fwd_sample sample:") > - self.out =3D self.vm0_dut.send_expect(cmd, "L3FWD_POWER", 60= ) > - if "Error" in self.out: > - raise Exception("Launch l3fwd-power sample failed") > - else: > - self.logger.info("Launch l3fwd-power sample finished") > - except Exception as e: > - self.logger.error("ERROR: Failed to launch l3fwd-power sampl= e: %s" > - % str(e)) > stroutput =3D "" > for ip in range(2, 10): > self.send_packet_loop(self.vf0_mac, self.rx_intf_0, self.vm0= _dut, ip) > -- > 2.25.1