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 1A6CEA00C2; Wed, 22 Apr 2020 12:17:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DA2CE1D559; Wed, 22 Apr 2020 12:17:44 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 1085D1D542 for ; Wed, 22 Apr 2020 12:17:43 +0200 (CEST) IronPort-SDR: YR+pHgt6evJ5MdEkwVsorapbKooORkw3FHCsGDsndXwwSwHSSm6P86XzP3NHoSV+BlOfwxwjsg cVJBW36kvYBg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2020 03:17:43 -0700 IronPort-SDR: vuHCDkr3jjT3VxGQQV46KOCVaEAZeCQXyjUpHS8jCPsWNjkAj7hlE1EVYYfAt6+qEnRPBAk3fw ZPfnNCGU07yg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,413,1580803200"; d="scan'208";a="273837621" Received: from unknown (HELO xqm-virtio_tester.sh.intel.com) ([10.240.183.52]) by orsmga002.jf.intel.com with ESMTP; 22 Apr 2020 03:17:42 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Wed, 22 Apr 2020 18:11:24 +0800 Message-Id: <1587550284-401403-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1]vhost_dequeue_zero_copy: vhost_dequeue_zero_copy need run with igb_uio driver 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" *. change nic driver to igb_uio for this test Signed-off-by: Xiao Qimai --- tests/TestSuite_vhost_dequeue_zero_copy.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/TestSuite_vhost_dequeue_zero_copy.py b/tests/TestSuite_vhost_dequeue_zero_copy.py index e13e385..8fca47a 100644 --- a/tests/TestSuite_vhost_dequeue_zero_copy.py +++ b/tests/TestSuite_vhost_dequeue_zero_copy.py @@ -60,6 +60,11 @@ class TestVhostDequeueZeroCopy(TestCase): self.frame_sizes = [64, 128, 256, 512, 1024, 1518] self.dut_ports = self.dut.get_ports() self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing") + self.def_driver = self.dut.ports_info[self.dut_ports[0]]["port"].get_nic_driver() + if self.def_driver != "igb_uio": + self.dut.setup_modules_linux(self.target, 'igb_uio', '') + self.dut.bind_interfaces_linux('igb_uio', nics_to_bind=self.dut_ports) + self.driver_chg = True self.ports_socket = self.dut.get_numa_id(self.dut_ports[0]) self.dst_mac = self.dut.get_mac_address(self.dut_ports[0]) self.tx_port = self.tester.get_local_port(self.dut_ports[0]) @@ -504,5 +509,7 @@ class TestVhostDequeueZeroCopy(TestCase): """ Run after each test suite. """ + if getattr(self, "driver_chg", None): + self.dut.bind_interfaces_linux(self.def_driver, nics_to_bind=self.dut_ports) if getattr(self, 'vhost_user', None): self.dut.close_session(self.vhost_user) -- 1.8.3.1