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 3DAC5A0519; Fri, 3 Jul 2020 09:30:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 28D8E1DA0F; Fri, 3 Jul 2020 09:30:45 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 03FB41DA08 for ; Fri, 3 Jul 2020 09:30:42 +0200 (CEST) IronPort-SDR: dybbGe7i1rnGtIttvmXuKDg4d3ekXbpWZoG/XEfRUYwk9S3OukIxK/MJxik/c22qXyWPZfwSJm BObNMWLE7Vlw== X-IronPort-AV: E=McAfee;i="6000,8403,9670"; a="231972701" X-IronPort-AV: E=Sophos;i="5.75,307,1589266800"; d="scan'208";a="231972701" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2020 00:30:41 -0700 IronPort-SDR: Aj1vaoskfU1Klm4EHZYYXdjGldoajSKCd1a96iFg1Qo/uMt1Wh3FsMRiMXFUKU4OJ9SbZ7B/UC AVvmlEp+9yUg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,307,1589266800"; d="scan'208";a="296140208" Received: from unknown (HELO cb-dts.sh.intel.com) ([10.240.183.58]) by orsmga002.jf.intel.com with ESMTP; 03 Jul 2020 00:30:40 -0700 From: ChenBo To: dts@dpdk.org Cc: ChenBo Date: Fri, 3 Jul 2020 15:19:56 +0800 Message-Id: <20200703071956.29627-1-box.c.chen@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] Fix VF driver problem 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" After creating VF, VF needs to be bound to the default driver to generate the port name. Signed-off-by: ChenBo --- tests/TestSuite_cvl_dcf_switch_filter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_cvl_dcf_switch_filter.py b/tests/TestSuite_cvl_dcf_switch_filter.py index 5c39eaa..1a51d40 100644 --- a/tests/TestSuite_cvl_dcf_switch_filter.py +++ b/tests/TestSuite_cvl_dcf_switch_filter.py @@ -903,7 +903,8 @@ class SwitchFilterTest(TestCase): self.verify(len(self.dut_ports) >= 1, "Insufficient ports") localPort = self.tester.get_local_port(self.dut_ports[0]) self.__tx_iface = self.tester.get_interface(localPort) - self.dut.send_expect("ifconfig %s up" % self.__tx_iface, "# ") + self.tester.send_expect("ifconfig %s up" % self.__tx_iface, "# ") + self.dut.send_expect("ifconfig %s up" % self.dut_ports[0], "# ") self.pkt = Packet() self.testpmd_status = "close" self.suite_config = rfc.get_suite_config(self) @@ -1586,6 +1587,7 @@ class SwitchFilterTest(TestCase): #sort the vf interfaces and pcis by pcis vfs = {} for vf_port in self.sriov_vfs_port: + vf_port.bind_driver() vfs[vf_port.pci] = vf_port.intf_name vfs_sort = sorted(vfs.items(), key=lambda item:item[0]) vf_pci = [key for key,value in vfs_sort] @@ -1808,7 +1810,7 @@ class SwitchFilterTest(TestCase): """ if self.testpmd_status != "close": # destroy all flow rules on DCF - self.dut.send_expect("flow flush 0", "testpmd> ", 15) + self.dut.send_expect("flow flush 0", "testpmd> ", 120) self.dut.send_expect("clear port stats all", "testpmd> ", 15) self.dut.send_expect("quit", "#", 15) self.testpmd_status = "close" -- 2.17.1