Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/84062/?format=api
http://patches.dpdk.org/api/patches/84062/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201112145013.21778-1-cristian.dumitrescu@intel.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20201112145013.21778-1-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201112145013.21778-1-cristian.dumitrescu@intel.com", "date": "2020-11-12T14:50:13", "name": "pipeline: fix multiple emit pattern detection", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "5e552e929821e0c96c626388f9de549eeabe2c03", "submitter": { "id": 19, "url": "http://patches.dpdk.org/api/people/19/?format=api", "name": "Cristian Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "delegate": { "id": 24651, "url": "http://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201112145013.21778-1-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 13844, "url": "http://patches.dpdk.org/api/series/13844/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13844", "date": "2020-11-12T14:50:13", "name": "pipeline: fix multiple emit pattern detection", "version": 1, "mbox": "http://patches.dpdk.org/series/13844/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/84062/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/84062/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-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 C0635A09D3;\n\tThu, 12 Nov 2020 15:50:31 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 5C2345928;\n\tThu, 12 Nov 2020 15:50:30 +0100 (CET)", "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by dpdk.org (Postfix) with ESMTP id 9D8144CA6\n for <dev@dpdk.org>; Thu, 12 Nov 2020 15:50:27 +0100 (CET)", "from fmsmga006.fm.intel.com ([10.253.24.20])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Nov 2020 06:50:15 -0800", "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.223.107])\n by fmsmga006.fm.intel.com with ESMTP; 12 Nov 2020 06:50:14 -0800" ], "IronPort-SDR": [ "\n a3KNdm8HsOOPw03P2kAIg6FBYjPBLZXMrjUTYiMKxM827kqDm6HB7UPgBbmzMZQKFN+JTDNRoQ\n UbXTa9aPzQZw==", "\n upVi3GzTm81gAD9R1/GaMZgSRQsjqJgcaMiOfrqERyDkriH9GiO2sW5Uj2iQLYrKJ7V+eePaA4\n VbS7IQ6XzYAw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9802\"; a=\"158096310\"", "E=Sophos;i=\"5.77,472,1596524400\"; d=\"scan'208\";a=\"158096310\"", "E=Sophos;i=\"5.77,472,1596524400\"; d=\"scan'208\";a=\"530690675\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Cc": "david.marchand@redhat.com", "Date": "Thu, 12 Nov 2020 14:50:13 +0000", "Message-Id": "<20201112145013.21778-1-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dpdk-dev] [PATCH] pipeline: fix multiple emit pattern detection", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Fix the detection of instruction pattern with multiple emits followed\nby TX. Once detected, this is one of the instruction patterns that is\ninternally replaced with a single optimized instruction, as long as\nnone of the instructions to be replaced is referenced by a jump\ninstruction. The fix enforces this check for the TX instruction of\nthe pattern.\n\nFixes: 31035e87b207 (\"pipeline: add SWX instruction optimizer\")\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n lib/librte_pipeline/rte_swx_pipeline.c | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/lib/librte_pipeline/rte_swx_pipeline.c b/lib/librte_pipeline/rte_swx_pipeline.c\nindex fe8bfc8b3..eaaed7a0a 100644\n--- a/lib/librte_pipeline/rte_swx_pipeline.c\n+++ b/lib/librte_pipeline/rte_swx_pipeline.c\n@@ -5796,6 +5796,9 @@ instr_pattern_emit_many_tx_detect(struct instruction *instr,\n \tif (instr[i].type != INSTR_TX)\n \t\treturn 0;\n \n+\tif (data[i].n_users)\n+\t\treturn 0;\n+\n \ti++;\n \n \t*n_pattern_instr = i;\n", "prefixes": [] }{ "id": 84062, "url": "