Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/119608/?format=api
https://patches.dpdk.org/api/patches/119608/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20221109094148.6216-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": "<20221109094148.6216-1-dukaix.yuan@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20221109094148.6216-1-dukaix.yuan@intel.com", "date": "2022-11-09T09:41:48", "name": "[V1] tests/hotplug modify_code_to_support_2M_hugepages", "commit_ref": null, "pull_url": null, "state": "superseded", "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/20221109094148.6216-1-dukaix.yuan@intel.com/mbox/", "series": [ { "id": 25656, "url": "https://patches.dpdk.org/api/series/25656/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=25656", "date": "2022-11-09T09:41:48", "name": "[V1] tests/hotplug modify_code_to_support_2M_hugepages", "version": 1, "mbox": "https://patches.dpdk.org/series/25656/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/119608/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/119608/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 5D6BFA00C4;\n\tWed, 9 Nov 2022 10:46:14 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2DFEB400EF;\n\tWed, 9 Nov 2022 10:46:14 +0100 (CET)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id BA70C400D7\n for <dts@dpdk.org>; Wed, 9 Nov 2022 10:46:12 +0100 (CET)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Nov 2022 01:46:11 -0800", "from unknown (HELO localhost.localdomain) ([10.239.252.15])\n by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Nov 2022 01:46:10 -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=1667987172; x=1699523172;\n h=from:to:cc:subject:date:message-id;\n bh=fd3jBsq/DuhwRbPn7nLvOnttQryQ1VVWDUos8XePJIU=;\n b=eZ+HoWCeutCpM6DP3upaWFkxaLvlkRPTegE1/1NjPoN9HBWNm1WvnR9q\n /xXppCgH+ZipSOXzlJAaTVyFB4pN99y0+B7a0XBFZJ8NmyqL7+6Tg1+4t\n 0cCr97+t89nh3pMfW+ng4VvTqqEdPVm71fwaTr2dIFzJ2vcfR4+H7wd8r\n vx7uhf0dbmXnkcx0UnQvcxmUDqfUbNQ0lc5TU5t7KX0LxF7zTQsb9nh00\n pjYgs/v5Tko/5HjVUa6JF/OVhc6EL2Gyc0f14AE9v35rRHwWH/WpX1SZy\n APAh9j4rCgt3cyq12XVl5nuRAq4JPyRVhN1Vwizy8JelZ25UPutCLDz5t Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10525\"; a=\"397229742\"", "E=Sophos;i=\"5.96,150,1665471600\"; d=\"scan'208\";a=\"397229742\"", "E=McAfee;i=\"6500,9779,10525\"; a=\"742331904\"", "E=Sophos;i=\"5.96,150,1665471600\"; d=\"scan'208\";a=\"742331904\"" ], "From": "Dukai Yuan <dukaix.yuan@intel.com>", "To": "dts@dpdk.org", "Cc": "Dukai Yuan <dukaix.yuan@intel.com>", "Subject": "[dts][PATCH V1] tests/hotplug modify_code_to_support_2M_hugepages", "Date": "Wed, 9 Nov 2022 17:41:48 +0800", "Message-Id": "<20221109094148.6216-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": "Testsuite hotplug unsupport test with 2M hugepage.\nModify test code to support 2M hugepage.\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": [ "V1" ] }{ "id": 119608, "url": "