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 A0597A0487 for ; Tue, 2 Jul 2019 03:44:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 79DE01B9A3; Tue, 2 Jul 2019 03:44:52 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id E089F1B99F for ; Tue, 2 Jul 2019 03:44:50 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Jul 2019 18:44:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,441,1557212400"; d="scan'208";a="184384171" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 01 Jul 2019 18:44:49 -0700 From: "xiao,qimai" To: dts@dpdk.org Cc: "xiao,qimai" Date: Tue, 2 Jul 2019 09:49:32 +0800 Message-Id: <1562032172-122236-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] add cpu_id for single cpu on socket 0 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" add cpu_id for env with single cpu on socket 0 Signed-off-by: xiao,qimai --- 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 88dcc7e..a649a44 100644 --- a/tests/TestSuite_flow_classify_softnic.py +++ b/tests/TestSuite_flow_classify_softnic.py @@ -82,7 +82,10 @@ class TestFlowClassifySoftnic(TestCase): """ self.set_ports(filename, port_num) TESTPMD = "./%s/app/testpmd" % self.target - VDEV = "--vdev 'net_softnic0,firmware=./drivers/net/softnic/flow_classify_softnic/%s,cpu_id=1,conn_port=8086'" % filename + 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 + 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) -- 2.17.1