Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/84778/?format=api
http://patches.dpdk.org/api/patches/84778/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20201207095302.2133-3-haiyangx.zhao@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": "<20201207095302.2133-3-haiyangx.zhao@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20201207095302.2133-3-haiyangx.zhao@intel.com", "date": "2020-12-07T09:53:02", "name": "[V1,2/2] framework/pmd_output: add -a support in split_eal_param", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "88d9fa4578427bbc617ee18c085faa686092874c", "submitter": { "id": 1978, "url": "http://patches.dpdk.org/api/people/1978/?format=api", "name": "Zhao, HaiyangX", "email": "haiyangx.zhao@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dts/patch/20201207095302.2133-3-haiyangx.zhao@intel.com/mbox/", "series": [ { "id": 14197, "url": "http://patches.dpdk.org/api/series/14197/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=14197", "date": "2020-12-07T09:53:00", "name": "framework: add -a option support in eal param", "version": 1, "mbox": "http://patches.dpdk.org/series/14197/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/84778/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/84778/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 6EF4BA0524;\n\tMon, 7 Dec 2020 10:59:34 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 5D6A5C8E6;\n\tMon, 7 Dec 2020 10:59:33 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by dpdk.org (Postfix) with ESMTP id 300B1C8C4\n for <dts@dpdk.org>; Mon, 7 Dec 2020 10:59:30 +0100 (CET)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Dec 2020 01:59:29 -0800", "from unknown (HELO localhost.localdomain) ([10.240.183.57])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Dec 2020 01:59:27 -0800" ], "IronPort-SDR": [ "\n NuQiStB9A/eGq0osX0A09EjtnpqlP5l0TjBy2MueIE4IEWQCJc0JUG23ebomfLrxLWtaE6KFzu\n 4F7pVOk65Tyw==", "\n L5w3SMDmDl65zE8n4BJ/6TTZ7beB5Hyrcu7bhAwo4fh1k9pt+dfYxqhe0YeYWwSSRfDQl0H2I4\n 1nzIvRJdhoTg==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9827\"; a=\"173783182\"", "E=Sophos;i=\"5.78,399,1599548400\"; d=\"scan'208\";a=\"173783182\"", "E=Sophos;i=\"5.78,399,1599548400\"; d=\"scan'208\";a=\"541448215\"" ], "From": "Haiyang Zhao <haiyangx.zhao@intel.com>", "To": "lijuan.tu@intel.com,\n\tdts@dpdk.org", "Cc": "Haiyang Zhao <haiyangx.zhao@intel.com>", "Date": "Mon, 7 Dec 2020 17:53:02 +0800", "Message-Id": "<20201207095302.2133-3-haiyangx.zhao@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20201207095302.2133-1-haiyangx.zhao@intel.com>", "References": "<20201207095302.2133-1-haiyangx.zhao@intel.com>", "Subject": "[dts] [PATCH V1 2/2] framework/pmd_output: add -a support in\n\tsplit_eal_param", "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": "add -a support and optmize the regular expression.\n\nSigned-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>\n---\n framework/pmd_output.py | 21 ++++++++++++---------\n 1 file changed, 12 insertions(+), 9 deletions(-)", "diff": "diff --git a/framework/pmd_output.py b/framework/pmd_output.py\nindex 6557f9c..9dc6d3b 100644\n--- a/framework/pmd_output.py\n+++ b/framework/pmd_output.py\n@@ -109,11 +109,14 @@ class PmdOutput():\n :param eal_param:\n :return:\n \"\"\"\n- re_w_pci_str = '\\s?-w\\\\s+.+?:.+?:.+?\\\\..+?[,.*=\\d+]?\\s|\\s?-w\\\\s+.+?:.+?\\\\..+?[,.*=\\d+]?\\s'\n+ re_w_pci_str = '\\s?-[w,a]\\s+\\w*:?[A-Fa-f0-9]{2}:[A-Fa-f0-9]{2}.[A-Fa-f0-9]{1},.*=\\d+' \\\n+ '|\\s?-[w,a]\\s+\\w*:?[A-Fa-f0-9]{2}:[A-Fa-f0-9]{2}.[A-Fa-f0-9]{1}'\n re_file_prefix_str = '--file-prefix[\\s*=]\\S+\\s'\n- re_b_pci_str = '\\s?-b\\\\s+.+?:.+?:.+?\\\\..+?[,.*=\\d+]?\\s|\\s?-b\\\\s+.+?:.+?\\\\..+?[,.*=\\d+]?\\s'\n+ re_b_pci_str = '\\s?-b\\s+\\w*:?[A-Fa-f0-9]{2}:[A-Fa-f0-9]{2}.[A-Fa-f0-9]{1},.*=\\d+' \\\n+ '|\\s?-b\\s+\\w*:?[A-Fa-f0-9]{2}:[A-Fa-f0-9]{2}.[A-Fa-f0-9]{1}'\n eal_param = eal_param + ' '\n- # pci_str_list eg: ['-w 0000:1a:00.0 ', '-w 0000:1a:00.1,queue-num-per-vf=4 ', '-w 0000:aa:bb.1,queue-num-per-vf=4 ']\n+ # pci_str_list eg: ['-w 0000:1a:00.0 ', '-w 0000:1a:00.1,queue-num-per-vf=4 ', '-w 0000:aa:bb.1,queue-num-per-vf=4 ',\n+ # '-a 0000:1a:00.0 ', '-a 0000:1a:00.1,queue-num-per-vf=4 ', '-a 0000:aa:bb.1,queue-num-per-vf=4 ']\n w_pci_str_list = re.findall(re_w_pci_str, eal_param)\n # file_prefix_str eg: ['--file-prefix=dpdk ']\n file_prefix_str = re.findall(re_file_prefix_str, eal_param)\n@@ -123,13 +126,13 @@ class PmdOutput():\n if w_pci_str_list:\n for pci_str in w_pci_str_list:\n # has pci options\n- if ',' in pci_str:\n- pci_option = pci_str.split(',')\n- pci = pci_option[0].split(' ')[-1]\n- has_pci_option[pci] = pci_option[1].strip()\n- pci_list.append(pci)\n+ pci_str_options = pci_str.split('-w ') if '-w ' in pci_str else pci_str.split('-a ')\n+ if ',' in pci_str_options[-1]:\n+ pci_option = pci_str_options[-1].split(',')\n+ has_pci_option[pci_option[0]] = pci_option[1].strip()\n+ pci_list.append(pci_option[0])\n else:\n- pci_list.append(pci_str.split('-w')[-1].strip())\n+ pci_list.append(pci_str_options[-1])\n \n b_pci_list = []\n if b_pci_str_list:\n", "prefixes": [ "V1", "2/2" ] }{ "id": 84778, "url": "