Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/35362/?format=api
http://patches.dpdk.org/api/patches/35362/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/31f6d9ef676fb1eb0a664c06d62d66f32876dcb6.1519322682.git.anatoly.burakov@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": "<31f6d9ef676fb1eb0a664c06d62d66f32876dcb6.1519322682.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/31f6d9ef676fb1eb0a664c06d62d66f32876dcb6.1519322682.git.anatoly.burakov@intel.com", "date": "2018-02-22T18:21:13", "name": "[dpdk-dev,1/3] eal: add internal flag indicating init has completed", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "5b8ae61151782e357463e332ccdfa34f59fdb948", "submitter": { "id": 4, "url": "http://patches.dpdk.org/api/people/4/?format=api", "name": "Burakov, Anatoly", "email": "anatoly.burakov@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/31f6d9ef676fb1eb0a664c06d62d66f32876dcb6.1519322682.git.anatoly.burakov@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/35362/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/35362/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id AEB721B29E;\n\tThu, 22 Feb 2018 19:21:22 +0100 (CET)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id A6FCE1B28F\n\tfor <dev@dpdk.org>; Thu, 22 Feb 2018 19:21:19 +0100 (CET)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t22 Feb 2018 10:21:17 -0800", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga001.jf.intel.com with ESMTP; 22 Feb 2018 10:21:16 -0800", "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tw1MILGBj013686 for <dev@dpdk.org>; Thu, 22 Feb 2018 18:21:16 GMT", "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id w1MILFEj022597\n\tfor <dev@dpdk.org>; Thu, 22 Feb 2018 18:21:15 GMT", "(from aburakov@localhost)\n\tby sivswdev01.ir.intel.com with LOCAL id w1MILFv9022593\n\tfor dev@dpdk.org; Thu, 22 Feb 2018 18:21:15 GMT" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.47,378,1515484800\"; d=\"scan'208\";a=\"33379424\"", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Date": "Thu, 22 Feb 2018 18:21:13 +0000", "Message-Id": "<31f6d9ef676fb1eb0a664c06d62d66f32876dcb6.1519322682.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 1.7.0.7", "Subject": "[dpdk-dev] [PATCH 1/3] eal: add internal flag indicating init has\n\tcompleted", "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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Currently, primary process initialization is finalized by setting\nthe RTE_MAGIC value in the shared config. However, it is not\npossible to check whether secondary process initialization has\ncompleted. Add such a value to internal config.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n lib/librte_eal/common/eal_common_options.c | 1 +\n lib/librte_eal/common/eal_internal_cfg.h | 2 ++\n lib/librte_eal/linuxapp/eal/eal.c | 2 ++\n 3 files changed, 5 insertions(+)", "diff": "diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c\nindex 9f2f8d2..0be80cb 100644\n--- a/lib/librte_eal/common/eal_common_options.c\n+++ b/lib/librte_eal/common/eal_common_options.c\n@@ -194,6 +194,7 @@ eal_reset_internal_config(struct internal_config *internal_cfg)\n \tinternal_cfg->vmware_tsc_map = 0;\n \tinternal_cfg->create_uio_dev = 0;\n \tinternal_cfg->user_mbuf_pool_ops_name = NULL;\n+\tinternal_cfg->init_complete = 0;\n }\n \n static int\ndiff --git a/lib/librte_eal/common/eal_internal_cfg.h b/lib/librte_eal/common/eal_internal_cfg.h\nindex 1169fcc..4e2c2e6 100644\n--- a/lib/librte_eal/common/eal_internal_cfg.h\n+++ b/lib/librte_eal/common/eal_internal_cfg.h\n@@ -56,6 +56,8 @@ struct internal_config {\n \t\t\t/**< user defined mbuf pool ops name */\n \tunsigned num_hugepage_sizes; /**< how many sizes on this system */\n \tstruct hugepage_info hugepage_info[MAX_HUGEPAGE_SIZES];\n+\tunsigned int init_complete;\n+\t/**< indicates whether EAL has completed initialization */\n };\n extern struct internal_config internal_config; /**< Global EAL configuration. */\n \ndiff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c\nindex 38306bf..2ecd07b 100644\n--- a/lib/librte_eal/linuxapp/eal/eal.c\n+++ b/lib/librte_eal/linuxapp/eal/eal.c\n@@ -669,6 +669,8 @@ rte_eal_mcfg_complete(void)\n \t/* ALL shared mem_config related INIT DONE */\n \tif (rte_config.process_type == RTE_PROC_PRIMARY)\n \t\trte_config.mem_config->magic = RTE_MAGIC;\n+\n+\tinternal_config.init_complete = 1;\n }\n \n /*\n", "prefixes": [ "dpdk-dev", "1/3" ] }{ "id": 35362, "url": "