Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/84937/?format=api
http://patches.dpdk.org/api/patches/84937/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20201210112916.22079-1-junx.w.zhou@intel.com/", "project": { "id": 3, "url": "http://patches.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<20201210112916.22079-1-junx.w.zhou@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20201210112916.22079-1-junx.w.zhou@intel.com", "date": "2020-12-10T11:29:16", "name": "[V1] tests/TestSuite_efd:Modify the hard coded appparameter", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "8a868733c3b5c1bccdfa2f61bf98b27f0d0c4c1d", "submitter": { "id": 1646, "url": "http://patches.dpdk.org/api/people/1646/?format=api", "name": "Zhou, JunX W", "email": "junx.w.zhou@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dts/patch/20201210112916.22079-1-junx.w.zhou@intel.com/mbox/", "series": [ { "id": 14234, "url": "http://patches.dpdk.org/api/series/14234/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=14234", "date": "2020-12-10T11:29:16", "name": "[V1] tests/TestSuite_efd:Modify the hard coded appparameter", "version": 1, "mbox": "http://patches.dpdk.org/series/14234/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/84937/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/84937/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dts-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id E475EA04DB;\n\tThu, 10 Dec 2020 12:26:33 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B708BBE75;\n\tThu, 10 Dec 2020 12:26:32 +0100 (CET)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id 11AFABC8A\n for <dts@dpdk.org>; Thu, 10 Dec 2020 12:26:30 +0100 (CET)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Dec 2020 03:26:29 -0800", "from unknown (HELO localhost.localdomain) ([10.240.183.80])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Dec 2020 03:26:27 -0800" ], "IronPort-SDR": [ "\n 345KcMjBHF3rUWYysun1O084jzNhmwbSC32dE5ni8KkmPV/RZAIsrKBXadpVOB4FncJkTpCOWe\n ZhI6HyhmnU2Q==", "\n xtOiBJh7Xi5AQp4anrB4ObClV1+Rgeb+uzcm9iG8qWOkW3CRO2WcurqQi3Fl4vZUfcidrj2jV6\n Pm2khdURoGHw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9830\"; a=\"153473092\"", "E=Sophos;i=\"5.78,408,1599548400\"; d=\"scan'208\";a=\"153473092\"", "E=Sophos;i=\"5.78,408,1599548400\"; d=\"scan'208\";a=\"542805542\"" ], "From": "Zhou Jun <junx.w.zhou@intel.com>", "To": "dts@dpdk.org", "Cc": "Zhou Jun <junx.w.zhou@intel.com>", "Date": "Thu, 10 Dec 2020 19:29:16 +0800", "Message-Id": "<20201210112916.22079-1-junx.w.zhou@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dts] [PATCH V1] tests/TestSuite_efd:Modify the hard coded\n\tappparameter", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org", "Sender": "\"dts\" <dts-bounces@dpdk.org>" }, "content": "Modify the hard coded app parameter to call the platform interface\n\nSigned-off-by: Zhou Jun <junx.w.zhou@intel.com>\n---\n tests/TestSuite_efd.py | 23 +++++++++++------------\n 1 file changed, 11 insertions(+), 12 deletions(-)", "diff": "diff --git a/tests/TestSuite_efd.py b/tests/TestSuite_efd.py\nindex 36df999c..787733ca 100644\n--- a/tests/TestSuite_efd.py\n+++ b/tests/TestSuite_efd.py\n@@ -79,7 +79,8 @@ class TestEFD(TestCase):\n \"\"\"\n Run EFD unit test\n \"\"\"\n- self.dut.send_expect(\"./%s -n 1 -c f\" % self.app_test_path, \"RTE>>\", 60)\n+ eal_para = self.dut.create_eal_parameters(cores=[0, 1, 2, 3])\n+ self.dut.send_expect(\"./%s %s\" % (self.app_test_path, eal_para), \"RTE>>\", 60)\n out = self.dut.send_expect(\"efd_autotest\", \"RTE>>\", 120)\n self.dut.send_expect(\"quit\", \"# \")\n self.verify(\"Test OK\" in out, \"Test failed\")\n@@ -88,7 +89,8 @@ class TestEFD(TestCase):\n \"\"\"\n Run EFD unit perf test\n \"\"\"\n- self.dut.send_expect(\"./%s -n 1 -c f\" % self.app_test_path, \"RTE>>\", 60)\n+ eal_para = self.dut.create_eal_parameters(cores=[0, 1, 2, 3])\n+ self.dut.send_expect(\"./%s %s\" % (self.app_test_path, eal_para), \"RTE>>\", 60)\n out = self.dut.send_expect(\"efd_perf_autotest\", \"RTE>>\", 120)\n self.logger.info(out)\n self.dut.send_expect(\"quit\", \"# \")\n@@ -175,8 +177,8 @@ class TestEFD(TestCase):\n # extended flow number into etgen module\n \n # output port is calculated from overall ports number\n- server_cmd_fmt = \"%s -c %s -n %d -w %s -w %s -- -p 0x3 -n %d -f %s\"\n- node_cmd_fmt = \"%s -c %s -n %d --proc-type=secondary -- -n %d\"\n+ server_cmd_fmt = \"%s %s -- -p 0x3 -n %d -f %s\"\n+ node_cmd_fmt = \"%s %s --proc-type=secondary -- -n %d\"\n socket = self.dut.get_numa_id(self.dut_ports[0])\n \n pcap = os.sep.join([self.output_path, \"efd.pcap\"])\n@@ -195,19 +197,16 @@ class TestEFD(TestCase):\n \n self.verify(len(cores), \"Can't find enough cores\")\n \n- server_cmd = server_cmd_fmt % (self.server_app, utils.create_mask(cores[0:2]),\n- self.dut.get_memory_channels(),\n- self.dut.get_port_pci(self.dut_ports[0]),\n- self.dut.get_port_pci(self.dut_ports[1]),\n- node_num, hex(flow_num))\n-\n+ eal_para = self.dut.create_eal_parameters(cores=cores[0:2], ports=[0, 1])\n+ server_cmd = server_cmd_fmt % (self.server_app, eal_para, node_num, hex(flow_num))\n # create table may need few minutes\n self.dut.send_expect(server_cmd, \"Finished Process Init\", timeout=240)\n \n node_sessions = []\n for node in range(node_num):\n- node_cmd = node_cmd_fmt % (self.node_app, utils.create_mask([cores[2 + node]]),\n- self.dut.get_memory_channels(), node)\n+\n+ eal_para = self.dut.create_eal_parameters(cores=[cores[2 + node]])\n+ node_cmd = node_cmd_fmt % (self.node_app, eal_para, node)\n node_session = self.dut.new_session(suite=\"node%d\" % node)\n node_sessions.append(node_session)\n node_session.send_expect(node_cmd, \"Finished Process Init\", timeout=30)\n", "prefixes": [ "V1" ] }{ "id": 84937, "url": "