Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/134304/?format=api
http://patches.dpdk.org/api/patches/134304/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231114112407.3496460-26-huangdengdui@huawei.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": "<20231114112407.3496460-26-huangdengdui@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20231114112407.3496460-26-huangdengdui@huawei.com", "date": "2023-11-14T11:23:49", "name": "[v2,25/43] net/dpaa: use rte strerror", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "afa93881671cb39042839a9524a4738e0e15731a", "submitter": { "id": 3066, "url": "http://patches.dpdk.org/api/people/3066/?format=api", "name": "huangdengdui", "email": "huangdengdui@huawei.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231114112407.3496460-26-huangdengdui@huawei.com/mbox/", "series": [ { "id": 30292, "url": "http://patches.dpdk.org/api/series/30292/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30292", "date": "2023-11-14T11:23:25", "name": "replace strerror", "version": 2, "mbox": "http://patches.dpdk.org/series/30292/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/134304/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/134304/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 D153643329;\n\tTue, 14 Nov 2023 12:26:47 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D1081410D5;\n\tTue, 14 Nov 2023 12:24:40 +0100 (CET)", "from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188])\n by mails.dpdk.org (Postfix) with ESMTP id 27CDF402B2\n for <dev@dpdk.org>; Tue, 14 Nov 2023 12:24:13 +0100 (CET)", "from dggpeml500011.china.huawei.com (unknown [172.30.72.54])\n by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4SV3pG2HYVzWhNj;\n Tue, 14 Nov 2023 19:23:50 +0800 (CST)", "from localhost.huawei.com (10.50.165.33) by\n dggpeml500011.china.huawei.com (7.185.36.84) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.31; Tue, 14 Nov 2023 19:24:11 +0800" ], "From": "Dengdui Huang <huangdengdui@huawei.com>", "To": "<dev@dpdk.org>", "CC": "<ferruh.yigit@amd.com>, <stephen@networkplumber.org>,\n <lihuisong@huawei.com>, <fengchengwen@huawei.com>, <liuyonglong@huawei.com>", "Subject": "[PATCH v2 25/43] net/dpaa: use rte strerror", "Date": "Tue, 14 Nov 2023 19:23:49 +0800", "Message-ID": "<20231114112407.3496460-26-huangdengdui@huawei.com>", "X-Mailer": "git-send-email 2.33.0", "In-Reply-To": "<20231114112407.3496460-1-huangdengdui@huawei.com>", "References": "<20231114082539.1858594-44-huangdengdui@huawei.com>\n <20231114112407.3496460-1-huangdengdui@huawei.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Originating-IP": "[10.50.165.33]", "X-ClientProxiedBy": "dggems705-chm.china.huawei.com (10.3.19.182) To\n dggpeml500011.china.huawei.com (7.185.36.84)", "X-CFilter-Loop": "Reflected", "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": "The function strerror() is insecure in a multi-thread environment.\nThis patch uses rte_strerror() to replace it.\n\nCc: stable@dpdk.org\n\nSigned-off-by: Dengdui Huang <huangdengdui@huawei.com>\nAcked-by: Chengwen Feng <fengchengwen@huawei.com>\n---\n drivers/net/dpaa/dpaa_ethdev.c | 4 ++--\n drivers/net/dpaa/fmlib/fm_lib.c | 6 +++---\n 2 files changed, 5 insertions(+), 5 deletions(-)", "diff": "diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c\nindex ef4c06db6a..214627986f 100644\n--- a/drivers/net/dpaa/dpaa_ethdev.c\n+++ b/drivers/net/dpaa/dpaa_ethdev.c\n@@ -1080,7 +1080,7 @@ int dpaa_eth_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx,\n \t\tret = qman_init_fq(rxq, flags, &opts);\n \t\tif (ret) {\n \t\t\tDPAA_PMD_ERR(\"Channel/Q association failed. fqid 0x%x \"\n-\t\t\t\t\"ret:%d(%s)\", rxq->fqid, ret, strerror(ret));\n+\t\t\t\t\"ret:%d(%s)\", rxq->fqid, ret, rte_strerror(ret));\n \t\t\treturn ret;\n \t\t}\n \t\tif (dpaa_svr_family == SVR_LS1043A_FAMILY) {\n@@ -1210,7 +1210,7 @@ dpaa_eth_eventq_attach(const struct rte_eth_dev *dev,\n \tret = qman_init_fq(rxq, flags, &opts);\n \tif (ret) {\n \t\tDPAA_PMD_ERR(\"Ev-Channel/Q association failed. fqid 0x%x \"\n-\t\t\t\t\"ret:%d(%s)\", rxq->fqid, ret, strerror(ret));\n+\t\t\t\t\"ret:%d(%s)\", rxq->fqid, ret, rte_strerror(ret));\n \t\treturn ret;\n \t}\n \ndiff --git a/drivers/net/dpaa/fmlib/fm_lib.c b/drivers/net/dpaa/fmlib/fm_lib.c\nindex 1d6816050c..d4382d7065 100644\n--- a/drivers/net/dpaa/fmlib/fm_lib.c\n+++ b/drivers/net/dpaa/fmlib/fm_lib.c\n@@ -103,7 +103,7 @@ fm_get_api_version(t_handle h_fm, ioc_fm_api_version_t *p_version)\n \tret = ioctl(p_dev->fd, FM_IOC_GET_API_VERSION, p_version);\n \tif (ret) {\n \t\tDPAA_PMD_ERR(\"cannot get API version, error %i (%s)\\n\",\n-\t\t\t errno, strerror(errno));\n+\t\t\t errno, rte_strerror(errno));\n \t\tRETURN_ERROR(MINOR, E_INVALID_OPERATION, NO_MSG);\n \t}\n \t_fml_dbg(\"Finishing.\\n\");\n@@ -276,7 +276,7 @@ fm_pcd_kg_scheme_set(t_handle h_fm_pcd,\n \tret = ioctl(p_pcd_dev->fd, FM_PCD_IOC_KG_SCHEME_SET, params);\n \tif (ret) {\n \t\tDPAA_PMD_ERR(\" cannot set kg scheme, error %i (%s)\\n\",\n-\t\t\t errno, strerror(errno));\n+\t\t\t errno, rte_strerror(errno));\n \t\treturn NULL;\n \t}\n \n@@ -310,7 +310,7 @@ fm_pcd_kg_scheme_delete(t_handle h_scheme)\n \n \tif (ioctl(p_pcd_dev->fd, FM_PCD_IOC_KG_SCHEME_DELETE, &id)) {\n \t\tDPAA_PMD_WARN(\"cannot delete kg scheme, error %i (%s)\\n\",\n-\t\t\t errno, strerror(errno));\n+\t\t\t errno, rte_strerror(errno));\n \t\tRETURN_ERROR(MINOR, E_INVALID_OPERATION, NO_MSG);\n \t}\n \n", "prefixes": [ "v2", "25/43" ] }{ "id": 134304, "url": "