Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/130321/?format=api
http://patches.dpdk.org/api/patches/130321/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230815035239.1365591-2-okaya@kernel.org/", "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": "<20230815035239.1365591-2-okaya@kernel.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20230815035239.1365591-2-okaya@kernel.org", "date": "2023-08-15T03:52:33", "name": "[v3,1/7] eal: fixes for re-initialization issues", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "959e94eacc46f12db046189e897cfef16d4f0807", "submitter": { "id": 2903, "url": "http://patches.dpdk.org/api/people/2903/?format=api", "name": "Sinan Kaya", "email": "okaya@kernel.org" }, "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/20230815035239.1365591-2-okaya@kernel.org/mbox/", "series": [ { "id": 29225, "url": "http://patches.dpdk.org/api/series/29225/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29225", "date": "2023-08-15T03:52:32", "name": "support reinit flow", "version": 3, "mbox": "http://patches.dpdk.org/series/29225/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/130321/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/130321/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 BC3A143069;\n\tTue, 15 Aug 2023 05:52:54 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D3BDD43251;\n\tTue, 15 Aug 2023 05:52:50 +0200 (CEST)", "from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217])\n by mails.dpdk.org (Postfix) with ESMTP id 0772941104\n for <dev@dpdk.org>; Tue, 15 Aug 2023 05:52:49 +0200 (CEST)", "from smtp.kernel.org (relay.kernel.org [52.25.139.140])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits))\n (No client certificate requested)\n by dfw.source.kernel.org (Postfix) with ESMTPS id 7DDF2623E6;\n Tue, 15 Aug 2023 03:52:48 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 0CDFFC433C9;\n Tue, 15 Aug 2023 03:52:46 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1692071567;\n bh=xgwsGenNQ2/EuQJWt3NtG2gxSZFtRwfO3KI2h8UGChA=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=TBiw0JSNapQiGKFpsm+C3MlfEKeQgQn+dSV/3iksJDOO2iGnD9+JPDeTikV6NnV2w\n bPlQjyuVj/FZVZI7VhZRobus1k7EnOigY4usJGIzY7hI8Wnn+5edXoqk8nF/BaFDKK\n AEzoZtCWUGIwwkAQIcAgBW9+Qrn2Ob2UYrN4t1PQAonw4OTnShCjdV3mYrChpWRJb0\n Vg8ue1dkF38ANkwLRkI7mg7OucKSFpKN+YxJIEnJXNGhLd4vR+3oLOWuhTtqSfSWoi\n gMfp5WWwmPEbMOw0TiAfWt7yDlhHEKkZHg/0h5w+KcJkBqQRdBnfBZ77iAsgm8uVE3\n H6x29JNwzg36w==", "From": "okaya@kernel.org", "To": "", "Cc": "dev@dpdk.org, Graham Whyte <grwhyte@microsoft.com>,\n Sinan Kaya <okaya@kernel.org>", "Subject": "[PATCH v3 1/7] eal: fixes for re-initialization issues", "Date": "Mon, 14 Aug 2023 23:52:33 -0400", "Message-Id": "<20230815035239.1365591-2-okaya@kernel.org>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230815035239.1365591-1-okaya@kernel.org>", "References": "<20230815035239.1365591-1-okaya@kernel.org>", "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": "From: Graham Whyte <grwhyte@microsoft.com>\n\nreinitialize the solib link list and clean the globals holding\nstate for parsing.\n\nSigned-off-by: Sinan Kaya <okaya@kernel.org>\nSigned-off-by: Graham Whyte <grwhyte@microsoft.com>\n---\n lib/eal/common/eal_common_options.c | 7 +++++++\n lib/eal/linux/eal.c | 4 +++-\n 2 files changed, 10 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/eal/common/eal_common_options.c b/lib/eal/common/eal_common_options.c\nindex 062f1d8d9c..7043b6e2fd 100644\n--- a/lib/eal/common/eal_common_options.c\n+++ b/lib/eal/common/eal_common_options.c\n@@ -1981,6 +1981,13 @@ compute_ctrl_threads_cpuset(struct internal_config *internal_cfg)\n \t\tmemcpy(cpuset, &lcore_config[rte_get_main_lcore()].cpuset,\n \t\t\tsizeof(*cpuset));\n \t}\n+\n+\t/* Reinitialize solib_list */\n+\tTAILQ_INIT(&solib_list);\n+\n+\tmain_lcore_parsed = 0;\n+\tmem_parsed = 0;\n+\tcore_parsed = 0;\n }\n \n int\ndiff --git a/lib/eal/linux/eal.c b/lib/eal/linux/eal.c\nindex c6efd92014..650fb5f5a9 100644\n--- a/lib/eal/linux/eal.c\n+++ b/lib/eal/linux/eal.c\n@@ -79,6 +79,8 @@ struct lcore_config lcore_config[RTE_MAX_LCORE];\n int rte_cycles_vmware_tsc_map;\n \n \n+static uint32_t run_once;\n+\n int\n eal_clean_runtime_dir(void)\n {\n@@ -505,6 +507,7 @@ eal_parse_socket_arg(char *strval, volatile uint64_t *socket_arg)\n \t\tsocket_arg[i] = val;\n \t}\n \n+\t__atomic_store_n(&run_once, 0, __ATOMIC_RELAXED);\n \treturn 0;\n }\n \n@@ -967,7 +970,6 @@ int\n rte_eal_init(int argc, char **argv)\n {\n \tint i, fctret, ret;\n-\tstatic uint32_t run_once;\n \tuint32_t has_run = 0;\n \tchar cpuset[RTE_CPU_AFFINITY_STR_LEN];\n \tchar thread_name[RTE_MAX_THREAD_NAME_LEN];\n", "prefixes": [ "v3", "1/7" ] }{ "id": 130321, "url": "