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 1DC1AA054F; Tue, 18 Feb 2020 07:59:26 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 161771D9D4; Tue, 18 Feb 2020 07:59:26 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 4A90A1D9CB for ; Tue, 18 Feb 2020 07:59:25 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Feb 2020 22:59:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,455,1574150400"; d="scan'208";a="314970420" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 17 Feb 2020 22:59:23 -0800 From: lihong To: dts@dpdk.org Cc: lihong Date: Tue, 18 Feb 2020 15:04:52 +0800 Message-Id: <1582009492-46150-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/flow_classify_softnic: add ports info according to port num when start testpmd 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: lihong --- tests/TestSuite_flow_classify_softnic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_flow_classify_softnic.py b/tests/TestSuite_flow_classify_softnic.py index f707d1e..f2320be 100644 --- a/tests/TestSuite_flow_classify_softnic.py +++ b/tests/TestSuite_flow_classify_softnic.py @@ -86,7 +86,10 @@ class TestFlowClassifySoftnic(TestCase): 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) + ports_info = [] + for i in range(port_num): + ports_info.append(i) + eal_params = self.dut.create_eal_parameters(cores=self.cores, ports=ports_info) 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: cmd = "{0} {1} {2} -s 0x10 -- -i --rxq=4 --txq=4 --disable-rss --portmask=0x10".format(TESTPMD, VDEV, eal_params) -- 2.17.2