Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/84938/?format=api
https://patches.dpdk.org/api/patches/84938/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20201210113041.22140-1-junx.w.zhou@intel.com/", "project": { "id": 3, "url": "https://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": "<20201210113041.22140-1-junx.w.zhou@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20201210113041.22140-1-junx.w.zhou@intel.com", "date": "2020-12-10T11:30:41", "name": "[V1] tests/TestSuite_external_memory:Modify the hard coded appparameter", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "a1ac3999d4a86dd698bad9be09b62fb9ddc61860", "submitter": { "id": 1646, "url": "https://patches.dpdk.org/api/people/1646/?format=api", "name": "Zhou, JunX W", "email": "junx.w.zhou@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20201210113041.22140-1-junx.w.zhou@intel.com/mbox/", "series": [ { "id": 14235, "url": "https://patches.dpdk.org/api/series/14235/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=14235", "date": "2020-12-10T11:30:41", "name": "[V1] tests/TestSuite_external_memory:Modify the hard coded appparameter", "version": 1, "mbox": "https://patches.dpdk.org/series/14235/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/84938/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/84938/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 1DDB3A04DB;\n\tThu, 10 Dec 2020 12:27:57 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 12AD1BE75;\n\tThu, 10 Dec 2020 12:27:56 +0100 (CET)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id E9B6CBC8A\n for <dts@dpdk.org>; Thu, 10 Dec 2020 12:27:53 +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:27:52 -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:27:50 -0800" ], "IronPort-SDR": [ "\n yOHfdq51FtgLf2S9jNWWjNwLmSVOH4R16sG+5PK/V3CaenNJt2uboywQK2VIm9081oVnjkMajD\n PI4rfat04QRg==", "\n Yfk8Co/ioDrXJitXuiI6hu8JT0aLrZbuaX7kvFN6yRBqqKE7xl4tnE5lY9x1sr86DGoQUqFPAR\n fD3lMURVjWdQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9830\"; a=\"153473251\"", "E=Sophos;i=\"5.78,408,1599548400\"; d=\"scan'208\";a=\"153473251\"", "E=Sophos;i=\"5.78,408,1599548400\"; d=\"scan'208\";a=\"542805806\"" ], "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:30:41 +0800", "Message-Id": "<20201210113041.22140-1-junx.w.zhou@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dts] [PATCH V1] tests/TestSuite_external_memory:Modify the hard\n\tcoded appparameter", "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_external_memory.py | 27 +++++++++++++++------------\n 1 file changed, 15 insertions(+), 12 deletions(-)", "diff": "diff --git a/tests/TestSuite_external_memory.py b/tests/TestSuite_external_memory.py\nindex f899ae74..53522a79 100644\n--- a/tests/TestSuite_external_memory.py\n+++ b/tests/TestSuite_external_memory.py\n@@ -46,11 +46,9 @@ class TestExternalMemory(TestCase):\n \"\"\"\n Run at the start of each test suite.\n \"\"\"\n-\n self.dut_ports = self.dut.get_ports(self.nic)\n self.verify(len(self.dut_ports) >= 2, \"Insufficient ports\")\n- cores = self.dut.get_core_list(\"1S/4C/1T\")\n- self.coremask = utils.create_mask(cores)\n+\n self.app_testpmd_path = self.dut.apps_name['test-pmd']\n \n def set_up(self):\n@@ -93,8 +91,9 @@ class TestExternalMemory(TestCase):\n Verifier IGB_UIO and anonymous memory allocation\n \"\"\"\n self.insmod_modprobe(modename=\"igb_uio\")\n-\n- cmd = \"./%s -c %s -n 4 -- --mp-alloc=xmem -i\" % (self.app_testpmd_path, self.coremask)\n+ self.eal_para = self.dut.create_eal_parameters(cores=\"1S/4C/1T\")\n+ self.dut.send_expect(r'./%s %s -- --mp-alloc=xmem -i'\n+ % (self.app_testpmd_path, self.eal_para), \"link state change event\", 60)\n \n self.dut.send_expect(cmd,\"testpmd>\",60)\n self.verifier_result()\n@@ -104,9 +103,9 @@ class TestExternalMemory(TestCase):\n Verifier IGB_UIO and anonymous hugepage memory allocation\n \"\"\"\n self.insmod_modprobe(modename=\"igb_uio\")\n- cmd = \"./%s -c %s -n 4 -- --mp-alloc=xmemhuge -i\" % (self.app_testpmd_path, self.coremask)\n-\n- self.dut.send_expect(cmd,\"testpmd>\",60)\n+ self.eal_para = self.dut.create_eal_parameters(cores=\"1S/4C/1T\")\n+ self.dut.send_expect(r'./%s %s -- --mp-alloc=xmemhuge -i'\n+ % (self.app_testpmd_path, self.eal_para), \"link state change event\", 60)\n self.verifier_result()\n \n def test_VFIO_PCI_xmem(self):\n@@ -114,8 +113,10 @@ class TestExternalMemory(TestCase):\n Verifier VFIO_PCI and anonymous memory allocation\n \"\"\"\n self.insmod_modprobe(modename=\"vfio-pci\")\n- cmd = \"./%s -c %s -n 4 -- --mp-alloc=xmem -i\" % (self.app_testpmd_path, self.coremask)\n- self.dut.send_expect(cmd,\"testpmd>\",60)\n+\n+ self.eal_para = self.dut.create_eal_parameters(cores=\"1S/4C/1T\")\n+ self.dut.send_expect(r'./%s %s -- --mp-alloc=xmem -i'\n+ % (self.app_testpmd_path, self.eal_para),\"testpmd>\",60)\n \n self.verifier_result()\n \n@@ -124,8 +125,10 @@ class TestExternalMemory(TestCase):\n Verifier VFIO and anonymous hugepage memory allocation\n \"\"\"\n self.insmod_modprobe(modename=\"vfio-pci\")\n- cmd = \"./%s -c %s -n 4 -- --mp-alloc=xmemhuge -i\" % (self.app_testpmd_path, self.coremask)\n- self.dut.send_expect(cmd,\"testpmd>\",60)\n+\n+ self.eal_para = self.dut.create_eal_parameters(cores=\"1S/4C/1T\")\n+ self.dut.send_expect(r'./%s %s -- --mp-alloc=xmemhuge -i'\n+ % (self.app_testpmd_path, self.eal_para),\"testpmd>\",60)\n \n self.verifier_result()\n \n", "prefixes": [ "V1" ] }{ "id": 84938, "url": "