Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/130310/?format=api
http://patches.dpdk.org/api/patches/130310/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230815013826.1288972-5-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": "<20230815013826.1288972-5-okaya@kernel.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20230815013826.1288972-5-okaya@kernel.org", "date": "2023-08-15T01:38:23", "name": "[v1,4/7] memseg: init once", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f0f99d59341f291136aae3d637bd2ed11d7839cf", "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/20230815013826.1288972-5-okaya@kernel.org/mbox/", "series": [ { "id": 29223, "url": "http://patches.dpdk.org/api/series/29223/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29223", "date": "2023-08-15T01:38:19", "name": "support reinit flow", "version": 1, "mbox": "http://patches.dpdk.org/series/29223/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/130310/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/130310/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 BD7EE43067;\n\tTue, 15 Aug 2023 03:39:00 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4091643266;\n\tTue, 15 Aug 2023 03:38:43 +0200 (CEST)", "from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217])\n by mails.dpdk.org (Postfix) with ESMTP id 3DC6643000\n for <dev@dpdk.org>; Tue, 15 Aug 2023 03:38:38 +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 A954361D91;\n Tue, 15 Aug 2023 01:38:37 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id BAF0EC433C7;\n Tue, 15 Aug 2023 01:38:36 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1692063517;\n bh=gbBQqNrbQOFc+JCFg5nzBx+zAskBFfjxfUgKIPyyn/E=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=F953AbGzx6EE2wuvMiY/SPXfTu3y6rpqEpq7a6pmWA53AEZC9I2n74vyVhgEpZ1SI\n 9S7aDjTUH8lk/6Ao8xZoWUJic1mO/qGGXYa1/pBIVB30dIqTOdbmk4UM2ijwyD4vsi\n IRciIWxG6c5JYRsSIYLZbw+1wMlta2Cg4B67z2FEjwMDPTHjVJo3iu8MyLpsuk5LmY\n o529mq456wqtLJ9UDBgWvpAGD4oD3Kl4d5BxeqgxlTTWEnzz9JfCk/HQZB4/waxgPd\n tAfhKqz2Hu9f02poicO8m1TIz4cn7WWqWfjpKua52qQ4Wfi/QY2JVt3WdIjrCJGJGn\n M5OB1dOshvP4w==", "From": "okaya@kernel.org", "To": "Anatoly Burakov <anatoly.burakov@intel.com>", "Cc": "dev@dpdk.org,\n\tSinan Kaya <okaya@kernel.org>", "Subject": "[PATCH v1 4/7] memseg: init once", "Date": "Mon, 14 Aug 2023 21:38:23 -0400", "Message-Id": "<20230815013826.1288972-5-okaya@kernel.org>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230815013826.1288972-1-okaya@kernel.org>", "References": "<20230815013826.1288972-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: Sinan Kaya <okaya@kernel.org>\n\nInitialize memory segments just once and bail out if called\nmultiple times.\n\nSigned-off-by: Sinan Kaya <okaya@kernel.org>\n---\n lib/eal/linux/eal_memory.c | 11 ++++++++++-\n 1 file changed, 10 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/eal/linux/eal_memory.c b/lib/eal/linux/eal_memory.c\nindex 60fc8cc6ca..c7bf879d15 100644\n--- a/lib/eal/linux/eal_memory.c\n+++ b/lib/eal/linux/eal_memory.c\n@@ -1902,6 +1902,11 @@ rte_eal_memseg_init(void)\n {\n \t/* increase rlimit to maximum */\n \tstruct rlimit lim;\n+\tstatic bool memseg_initialized = 0;\n+\tint ret;\n+\n+\tif (memseg_initialized)\n+\t\treturn 0;\n \n #ifndef RTE_EAL_NUMA_AWARE_HUGEPAGES\n \tconst struct internal_config *internal_conf =\n@@ -1930,11 +1935,15 @@ rte_eal_memseg_init(void)\n \t}\n #endif\n \n-\treturn rte_eal_process_type() == RTE_PROC_PRIMARY ?\n+\tret = rte_eal_process_type() == RTE_PROC_PRIMARY ?\n #ifndef RTE_ARCH_64\n \t\t\tmemseg_primary_init_32() :\n #else\n \t\t\tmemseg_primary_init() :\n #endif\n \t\t\tmemseg_secondary_init();\n+\n+\tmemseg_initialized = true;\n+\n+\treturn ret;\n }\n", "prefixes": [ "v1", "4/7" ] }{ "id": 130310, "url": "