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 06FEEA0523; Thu, 2 Jul 2020 09:08:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B72F71D5FF; Thu, 2 Jul 2020 09:08:36 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 9A2921D57F for ; Thu, 2 Jul 2020 09:08:34 +0200 (CEST) IronPort-SDR: VjOX/lzPqrptGPJxfMf5N/87xKp9RTZcetL+frvlUQKabgYRRiXQ6Wj+U9k7t0PLXfA0nhvVmR igg7LFuW90Cw== X-IronPort-AV: E=McAfee;i="6000,8403,9669"; a="208336123" X-IronPort-AV: E=Sophos;i="5.75,303,1589266800"; d="scan'208";a="208336123" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2020 00:08:33 -0700 IronPort-SDR: VfEF1f71980uDEU9ETvd8mOteOszom86fJUkMR6O61k8/cDXtdv91igHznbhWg65U9n9hh0F+s yNoVKc5W0jSw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,303,1589266800"; d="scan'208";a="387248021" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga001.fm.intel.com with ESMTP; 02 Jul 2020 00:08:32 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Thu, 2 Jul 2020 15:10:18 +0800 Message-Id: <20200702071018.8551-1-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/runtime_vf_queue_number:restore i40e vf to iavf when bind i40evf failed 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" call interface to determine which kernel driver to bind on vm, and the case just verifies queue number. Signed-off-by: Xie wei --- tests/TestSuite_runtime_vf_queue_number.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_runtime_vf_queue_number.py b/tests/TestSuite_runtime_vf_queue_number.py index 940e36a..93caf9e 100644 --- a/tests/TestSuite_runtime_vf_queue_number.py +++ b/tests/TestSuite_runtime_vf_queue_number.py @@ -365,7 +365,7 @@ class TestRuntimeVfQn(TestCase): host_eal_param = '-w %s,queue-num-per-vf=2 --file-prefix=test1 --socket-mem 1024,1024' % self.pf_pci self.host_testpmd.start_testpmd(self.pmdout.default_cores, param='', eal_param=host_eal_param) self.vm0_testpmd = PmdOutput(self.vm_dut_0) - self.vm0_testpmd.execute_cmd("./usertools/dpdk-devbind.py -b i40evf %s" % self.vm_dut_0.ports_info[0]['pci'], expected='# ') + self.vm_dut_0.restore_interfaces() # wait few seconds for link ready countdown = 60 while countdown: @@ -380,7 +380,7 @@ class TestRuntimeVfQn(TestCase): countdown -= 1 continue output = self.vm0_testpmd.execute_cmd("ethtool -S %s" % inf, expected='# ') - self.verify("tx-0.packets: 0" in output and "tx-1.packets: 0" in output, "VF0 rxq and txq number is not 2.") + self.verify("tx-0.packets" in output and "tx-1.packets" in output, "VF0 rxq and txq number is not 2.") def tear_down(self): self.stop_vm0() -- 2.17.1