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 C07F9A0530; Tue, 21 Jan 2020 03:56:34 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AFEC01BFDB; Tue, 21 Jan 2020 03:56:34 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 28DED1BFC8 for ; Tue, 21 Jan 2020 03:56:31 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jan 2020 18:56:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,344,1574150400"; d="scan'208";a="258900700" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 20 Jan 2020 18:56:29 -0800 From: "xu,hailin" To: dts@dpdk.org Cc: "xu,hailin" Date: Tue, 21 Jan 2020 11:02:01 +0800 Message-Id: <1579575721-138854-2-git-send-email-hailinx.xu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1579575721-138854-1-git-send-email-hailinx.xu@intel.com> References: <1579575721-138854-1-git-send-email-hailinx.xu@intel.com> Subject: [dts] [PATCH V1 2/2] tests/flow_classify_softnic:add create_eal_parameters 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: xu,hailin --- tests/TestSuite_flow_classify_softnic.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_flow_classify_softnic.py b/tests/TestSuite_flow_classify_softnic.py index a649a44..029e049 100644 --- a/tests/TestSuite_flow_classify_softnic.py +++ b/tests/TestSuite_flow_classify_softnic.py @@ -80,20 +80,18 @@ class TestFlowClassifySoftnic(TestCase): """ Start testpmd. """ + self.cores = self.dut.get_core_list("all") self.set_ports(filename, port_num) TESTPMD = "./%s/app/testpmd" % self.target cmd="cat /sys/bus/pci/devices/%s/numa_node"%self.dut_p0_pci numa_node = int(self.dut.send_expect(cmd, "# ", 60)) cpu_id = numa_node if numa_node > 0 else 0 + eal_params = self.dut.create_eal_parameters(cores=self.cores) VDEV = "--vdev 'net_softnic0,firmware=./drivers/net/softnic/flow_classify_softnic/%s,cpu_id=%s,conn_port=8086'" % (filename,cpu_id) if port_num == 4: - DUT_PORTS = " -w {0} -w {1} -w {2} -w {3} "\ - .format(self.dut_p0_pci, self.dut_p1_pci, self.dut_p2_pci, self.dut_p3_pci) - cmd = "{0} -c 0x1f -s 0x10 -n 4 {1} {2} -- -i --rxq=4 --txq=4 --disable-rss --portmask=0x10".format(TESTPMD, DUT_PORTS, VDEV) + cmd = "{0} {1} {2} -s 0x4 -- -i --rxq=4 --txq=4 --disable-rss --portmask=0x10".format(TESTPMD, VDEV, eal_params) elif port_num == 2: - DUT_PORTS = " -w {0} -w {1} "\ - .format(self.dut_p0_pci, self.dut_p1_pci) - cmd = "{0} -c 0x7 -s 0x4 -n 4 {1} {2} -- -i --rxq=2 --txq=2 --disable-rss --portmask=0x4".format(TESTPMD, DUT_PORTS, VDEV) + cmd = "{0} {1} {2} -s 0x4 -- -i --rxq=2 --txq=2 --disable-rss --portmask=0x4".format(TESTPMD, VDEV, eal_params) else: raise Exception("The number of port is wrong!") self.dut.send_expect(cmd, "testpmd> ", 60) @@ -162,7 +160,7 @@ class TestFlowClassifySoftnic(TestCase): # For the [pid]+ Done tcpdump... message after killing the process sleep(1) self.tester.send_expect('echo "Cleaning buffer"', '# ') - sleep(1) + sleep(3) def write_pcap_file(self, pcap_file, pkts): try: -- 1.8.3.1