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 ECC48A034F; Mon, 29 Mar 2021 07:29:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1D123140D8A; Mon, 29 Mar 2021 07:29:26 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id B6BE940042 for ; Mon, 29 Mar 2021 07:29:24 +0200 (CEST) IronPort-SDR: lnlvUC9kYAB78qWY1glshyhstiiZTXYHlTUxdv3IKs1TdO3apZeafyi+ENmBgW/A1cakq6SIUa d6DGZI5oczpw== X-IronPort-AV: E=McAfee;i="6000,8403,9937"; a="191579974" X-IronPort-AV: E=Sophos;i="5.81,285,1610438400"; d="scan'208";a="191579974" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2021 22:29:23 -0700 IronPort-SDR: bW0YQJqN7PWC7tJXRBa4rF+VNTOsJ0PBGnIjT8CfYymMyA1KCxs8c81btsFzZ8KGR6OFXZlBF2 l0sWpnnY9NAA== X-IronPort-AV: E=Sophos;i="5.81,285,1610438400"; d="scan'208";a="609601046" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2021 22:29:22 -0700 From: Ling Wei To: dts@dpdk.org Cc: Ling Wei Date: Mon, 29 Mar 2021 13:28:08 +0800 Message-Id: <20210329052808.31464-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 1/2] tests/dpdk_gro_lib: add allow pci parameter when start testpmd 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 Sender: "dts" 1.Add allow pci parameter when start testpmd to support tester and dut in the same server. 2.Fix dpdk_gro_lib suite execute done not unbind nic to kernel issue. Signed-off-by: Ling Wei --- tests/TestSuite_dpdk_gro_lib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_dpdk_gro_lib.py b/tests/TestSuite_dpdk_gro_lib.py index 37d2faa6..efd04ffd 100644 --- a/tests/TestSuite_dpdk_gro_lib.py +++ b/tests/TestSuite_dpdk_gro_lib.py @@ -164,7 +164,7 @@ class TestDPDKGROLib(TestCase): self.vhost_user = self.dut.new_session(suite="user") self.vhost_user.send_expect(self.testcmd_start, "testpmd> ", 120) else: - eal_param = self.dut.create_eal_parameters(cores=self.vhost_list, vdevs=['net_vhost0,iface=%s/vhost-net,queues=%s' % (self.base_dir, queue)]) + eal_param = self.dut.create_eal_parameters(cores=self.vhost_list, vdevs=['net_vhost0,iface=%s/vhost-net,queues=%s' % (self.base_dir, queue)], ports=[self.pci]) self.testcmd_start = self.path + eal_param + " -- -i --enable-hw-vlan-strip --tx-offloads=0x00 --txd=1024 --rxd=1024" self.vhost_user = self.dut.new_session(suite="user") self.vhost_user.send_expect(self.testcmd_start, "testpmd> ", 120) @@ -485,3 +485,5 @@ class TestDPDKGROLib(TestCase): """ self.unprepare_dpdk() self.dut.send_expect("ip netns del ns1", "# ", 30) + self.dut.send_expect("./usertools/dpdk-devbind.py -u %s" % (self.pci), '# ', 30) + self.dut.send_expect("./usertools/dpdk-devbind.py -b %s %s" % (self.pci_drv, self.pci), '# ', 30) -- 2.25.1