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 D0A73A034F; Sun, 26 Apr 2020 12:44:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 39A911BF9E; Sun, 26 Apr 2020 12:44:58 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 6E08B1BF88 for ; Sun, 26 Apr 2020 12:44:57 +0200 (CEST) IronPort-SDR: Z89jXLPAMS8XGXIQ5UAcL11veHehByP118gB+fYmB72/wFfylDePl68VMP9FTnaUDke47UMHMH e+gJCeHiFlVg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2020 03:44:56 -0700 IronPort-SDR: HkuEQBAb3MydNwlHNvG8j9SPsa/AJI5TmZsa/9S3HDqHK7+dH+/3ZfgsU6N0B1AkWGVZXQvWZW bEAE+z+xlFNQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,319,1583222400"; d="scan'208";a="335955413" Received: from unknown (HELO xqm-virtio_tester.sh.intel.com) ([10.240.183.52]) by orsmga001.jf.intel.com with ESMTP; 26 Apr 2020 03:44:55 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Sun, 26 Apr 2020 18:38:43 +0800 Message-Id: <1587897525-114547-2-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1587897525-114547-1-git-send-email-qimaix.xiao@intel.com> References: <1587897525-114547-1-git-send-email-qimaix.xiao@intel.com> Subject: [dts] [PATCH V1 1/3]dpdk_gro_lib: set test nic to driver specified in cfg 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" Signed-off-by: Xiao Qimai --- tests/TestSuite_dpdk_gro_lib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_dpdk_gro_lib.py b/tests/TestSuite_dpdk_gro_lib.py index 36841b9..0e1e3c8 100644 --- a/tests/TestSuite_dpdk_gro_lib.py +++ b/tests/TestSuite_dpdk_gro_lib.py @@ -53,6 +53,7 @@ class TestDPDKGROLib(TestCase): # unbind the port which config in ports.cfg self.dut_ports = self.dut.get_ports() + self.def_driver = self.dut.ports_info[self.dut_ports[0]]['port'].get_nic_driver() for i in self.dut_ports: port = self.dut.ports_info[i]['port'] port.bind_driver() @@ -66,9 +67,8 @@ class TestDPDKGROLib(TestCase): and len(self.peer_pci) != 0 and len(self.nic_in_kernel) != 0, 'Pls config the direct connection info in vhost_peer_conf.cfg') - self.dut.send_expect( - "./usertools/dpdk-devbind.py -b igb_uio %s" % - self.pci, '#', 30) + bind_script_path = self.dut.get_dpdk_bind_script() + self.dut.send_expect('%s --bind=%s %s' % (bind_script_path, self.def_driver, self.pci), '# ') # get the numa info about the pci info which config in peer cfg bus = int(self.pci[5:7], base=16) -- 1.8.3.1