Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/108368/?format=api
https://patches.dpdk.org/api/patches/108368/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/tencent_353E2247E7FA1B6FA44C8421A689C7ED7405@qq.com/", "project": { "id": 1, "url": "https://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": "<tencent_353E2247E7FA1B6FA44C8421A689C7ED7405@qq.com>", "list_archive_url": "https://inbox.dpdk.org/dev/tencent_353E2247E7FA1B6FA44C8421A689C7ED7405@qq.com", "date": "2022-02-26T14:55:30", "name": "sched: add parentheses to if clause", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "59cad8c6a4e3711295cdca92696106141f7c0d07", "submitter": { "id": 2458, "url": "https://patches.dpdk.org/api/people/2458/?format=api", "name": "Weiguo Li", "email": "liwg06@foxmail.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/tencent_353E2247E7FA1B6FA44C8421A689C7ED7405@qq.com/mbox/", "series": [ { "id": 21904, "url": "https://patches.dpdk.org/api/series/21904/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=21904", "date": "2022-02-26T14:55:30", "name": "sched: add parentheses to if clause", "version": 1, "mbox": "https://patches.dpdk.org/series/21904/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/108368/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/108368/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id CA398A034C;\n\tSat, 26 Feb 2022 15:55:41 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7BD2D4068F;\n\tSat, 26 Feb 2022 15:55:40 +0100 (CET)", "from out162-62-58-216.mail.qq.com (out162-62-58-216.mail.qq.com\n [162.62.58.216]) by mails.dpdk.org (Postfix) with ESMTP id DC10440395\n for <dev@dpdk.org>; Sat, 26 Feb 2022 15:55:38 +0100 (CET)", "from localhost.localdomain ([111.193.130.237])\n by newxmesmtplogicsvrszc6.qq.com (NewEsmtp) with SMTP\n id DDEBAC62; Sat, 26 Feb 2022 22:55:30 +0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com;\n s=s201512; t=1645887336;\n bh=XjtCq8oP8HsnIws/EHJStwT9D4BIYYJfBYW+XQbwKjQ=;\n h=From:To:Cc:Subject:Date;\n b=d+RL2cbQqAVntcvtJF9Q57FniAW8Z1IEfvbJRjm+RJnSWyIwK72jEBrePy8uZeDgV\n rRHmHL1TW5YqqWQlTK6//cqIssEKNOSxp24KPQU5X4nbDGog1oB2AU+9+jkD5zZH3C\n hEb0JtrlN15YF+Vp8oeaZ/FqhmlskjVEv57bE5vY=", "X-QQ-mid": "xmsmtpt1645887330t6fgljzgq", "Message-ID": "<tencent_353E2247E7FA1B6FA44C8421A689C7ED7405@qq.com>", "X-QQ-XMAILINFO": "NFlkxqDaIerInQZgUvZKOPJv6t5PrZc2kSeXRt9kxD+/apgphkKr1BxtWjKMph\n I1TPC/fb3mEoVEFBDqe03T/XyYZLdV7ucAwictXM7tGQzCGxtDkNWRzor+GyRotQUekkBJ7tg3Sc\n hzbxK+XfY8cXy2pS/8PKb94OVzRd/p/7/JBYQ8NnjgjfmeziioTOSrhLIXw+D3MxC86fEOW+INvR\n OFauyuTx9qUsyIJTbsFecWKShpqjZ7YyEZ0Lgldr/zr6Cfud+mqxp2o51nBfOXD0utQr3SUp/bQp\n 55CY67xdJhrt0nztQLr14xNuPTjWimdGX24ovadqQoiQ7jmkak5gtt42nQBo1NCb/LJJIJpJcSbi\n fyH33o42EF4KMS0+qU/BdnHSRg/f0S755lIylXjTDlwLeFq2R7p5uViB23h1fniaZMkyKr5s0pP+\n 6Cx9cwYLXXCaGUJ3FDvgZoJDSb86w6DB6Dc5wIR34ls90sL7WGAa2j7pFZ7j9ys+n7BelTutyDUy\n ilzi7a0wUxoclM+SYazn/PxTYy0gyAf5ZXXIRch1H5oTZXI1eupvhU2bWeyQxKHvYNq8R/bCCSmS\n Vv52OoeCq79HLixTAkZWbLl8adfhoBAQFcjd9dor1wvKZj2PGn7mppnCPyrCHR7eqnKaVP5qVftQ\n tloIPLzlbE4WE8wqz1MC7K+cyum6PxSYq/Z2CufvPtS9Z30sLDY/aUOf6dtwDLZdwicfj69q4NsZ\n pPVTn0aauE7xvax1nrQUdIGvzJ1a0cOr8ZeOQf1BB/VWI/ycVhCeH6C4o3vt/tRNYqkGPUHuN7fW\n bUaMmqrfNX/GQF5gEHzw1Nms44Rjg0Bj2ktLvjxsIYygIOQW5ffXNKw9DeUaLnJ1DBWYEpQq8cN0\n f5OdZnsop8Aom7eigQDIMgzAkK7IXgvXX8WysT41C8OZH5RgImVTE=", "From": "Weiguo Li <liwg06@foxmail.com>", "To": "cristian.dumitrescu@intel.com", "Cc": "wojciechx.liguzinski@intel.com,\n\tdev@dpdk.org", "Subject": "[PATCH] sched: add parentheses to if clause", "Date": "Sat, 26 Feb 2022 22:55:30 +0800", "X-OQ-MSGID": "<20220226145530.356828-1-liwg06@foxmail.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "Add parentheses to 'if' clause, otherwise will enlarged the\nchance of error return.\n\nFixes: 44c730b0e37971 (\"sched: add PIE based congestion management\")\n\nSigned-off-by: Weiguo Li <liwg06@foxmail.com>\n---\n lib/sched/rte_pie.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/lib/sched/rte_pie.c b/lib/sched/rte_pie.c\nindex cdb7bab697..51df403a25 100644\n--- a/lib/sched/rte_pie.c\n+++ b/lib/sched/rte_pie.c\n@@ -18,10 +18,10 @@ rte_pie_rt_data_init(struct rte_pie *pie)\n \t\t/* Allocate memory to use the PIE data structure */\n \t\tpie = rte_malloc(NULL, sizeof(struct rte_pie), 0);\n \n-\t\tif (pie == NULL)\n+\t\tif (pie == NULL) {\n \t\t\tRTE_LOG(ERR, SCHED, \"%s: Memory allocation fails\\n\", __func__);\n-\n-\t\treturn -1;\n+\t\t\treturn -1;\n+\t\t}\n \t}\n \n \tpie->active = 0;\n", "prefixes": [] }{ "id": 108368, "url": "