Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/119689/?format=api
https://patches.dpdk.org/api/patches/119689/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20221110014234.29418-1-dukaix.yuan@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": "<20221110014234.29418-1-dukaix.yuan@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20221110014234.29418-1-dukaix.yuan@intel.com", "date": "2022-11-10T01:42:34", "name": "[V2] tests/hotplug modify code to support 2M hugepages", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "821459f0e2953e590da8b23f0afbc65eab66a04c", "submitter": { "id": 2823, "url": "https://patches.dpdk.org/api/people/2823/?format=api", "name": "Yuan, DukaiX", "email": "dukaix.yuan@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20221110014234.29418-1-dukaix.yuan@intel.com/mbox/", "series": [ { "id": 25681, "url": "https://patches.dpdk.org/api/series/25681/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=25681", "date": "2022-11-10T01:42:34", "name": "[V2] tests/hotplug modify code to support 2M hugepages", "version": 2, "mbox": "https://patches.dpdk.org/series/25681/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/119689/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/119689/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 79220A04FD;\n\tThu, 10 Nov 2022 02:47:07 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 65EBA400EF;\n\tThu, 10 Nov 2022 02:47:07 +0100 (CET)", "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id 3B2C6400D4\n for <dts@dpdk.org>; Thu, 10 Nov 2022 02:47:05 +0100 (CET)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Nov 2022 17:46:56 -0800", "from unknown (HELO localhost.localdomain) ([10.239.252.15])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Nov 2022 17:46:55 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1668044825; x=1699580825;\n h=from:to:cc:subject:date:message-id;\n bh=Utws/HBqzxR6gt4YRKkPl0Pu0rVczrxTdDtpmujK2Qs=;\n b=GxektlkuCIfDNJg9xoLI7VLhM39t4B/Ye2KjwGsOBqp6UZ+OPmu1Kzj7\n zKPTCFOA0aS1L57b3IPi+jtoEniatw21iv+E43tk4rZHqMI45rjPHiJ/p\n Wkz+AcGp43e3RXjgrZzO+iFi6N4hYUOadS1frskqLrhYCk2k5NHBr3EXY\n Y6yDHxc48XfPE8emxkaYLbrhoHljRpoOyqaf9opMq/Y+5jzlB4gqZ9Y9k\n gVeSb4Nmknj0szAVM7KtNfWYXrvYHFdS41DI0e/gctjxqc4zPo+2rk/SY\n etjO3z3/z5KIz/MmRcNx5iTIsUC/mc8o/b83Xpiqb5x8UK8b6sZ+hzZpw A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10526\"; a=\"291573750\"", "E=Sophos;i=\"5.96,152,1665471600\"; d=\"scan'208\";a=\"291573750\"", "E=McAfee;i=\"6500,9779,10526\"; a=\"966221286\"", "E=Sophos;i=\"5.96,152,1665471600\"; d=\"scan'208\";a=\"966221286\"" ], "From": "Dukai Yuan <dukaix.yuan@intel.com>", "To": "dts@dpdk.org", "Cc": "Dukai Yuan <dukaix.yuan@intel.com>", "Subject": "[dts][PATCH V2] tests/hotplug modify code to support 2M hugepages", "Date": "Thu, 10 Nov 2022 09:42:34 +0800", "Message-Id": "<20221110014234.29418-1-dukaix.yuan@intel.com>", "X-Mailer": "git-send-email 2.17.1", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "Add `--single-file-segments` parameter when start virtio-user side\nto support running in 2M hugepage size testbed.\n\nSigned-off-by: Dukai Yuan <dukaix.yuan@intel.com>\n---\n tests/TestSuite_hotplug.py | 20 +++++++++++++++-----\n 1 file changed, 15 insertions(+), 5 deletions(-)", "diff": "diff --git a/tests/TestSuite_hotplug.py b/tests/TestSuite_hotplug.py\nindex 0f1e17fd..5cf0e933 100644\n--- a/tests/TestSuite_hotplug.py\n+++ b/tests/TestSuite_hotplug.py\n@@ -36,6 +36,7 @@ class TestPortHotPlug(TestCase):\n else:\n self.driver_name = self.drivername\n self.path = self.dut.apps_name[\"test-pmd\"]\n+ self.session2 = self.dut.create_session(name=\"virtio_user\")\n \n def set_up(self):\n \"\"\"\n@@ -122,6 +123,13 @@ class TestPortHotPlug(TestCase):\n )\n pkt.send_pkt(self.tester, tx_port=self.txItf)\n \n+ @property\n+ def check_2M_env(self):\n+ out = self.session2.send_expect(\n+ \"cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'\", \"# \"\n+ )\n+ return True if out == \"2048\" else False\n+\n def test_before_attach(self):\n \"\"\"\n first attach port after run testpmd\n@@ -185,6 +193,8 @@ class TestPortHotPlug(TestCase):\n eal_param = self.dut.create_eal_parameters(\n no_pci=True, fixed_prefix=\"virtio1\", cores=cores[5:9]\n )\n+ if self.check_2M_env:\n+ eal_param += \"--single-file-segments\"\n testpmd_cmd2 = \"%s/%s \" % (self.dut.base_dir, self.path) + eal_param + \" -- -i\"\n self.session2.send_expect(testpmd_cmd2, \"testpmd>\", timeout=60)\n self.session2.send_expect(\n@@ -207,11 +217,11 @@ class TestPortHotPlug(TestCase):\n self.verify(\n rx_pkts != 0 and tx_pkts != 0, \"not received packets or transport packets\"\n )\n- self.session2.send_expect(\"show port stats 0\", \"testpmd\", timeout=2)\n- self.session2.send_expect(\"stop\", \"testpmd\", timeout=2)\n- self.session2.send_expect(\"quit\", \"#\", timeout=2)\n- self.dut.send_expect(\"stop\", \"testpmd\", timeout=2)\n- self.dut.send_expect(\"quit\", \"#\", timeout=2)\n+ self.session2.send_expect(\"show port stats 0\", \"testpmd\")\n+ self.session2.send_expect(\"stop\", \"testpmd\")\n+ self.session2.send_expect(\"quit\", \"#\")\n+ self.dut.send_expect(\"stop\", \"testpmd\")\n+ self.dut.send_expect(\"quit\", \"#\")\n self.session2.close()\n \n def tear_down(self):\n", "prefixes": [ "V2" ] }{ "id": 119689, "url": "