Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/133788/?format=api
http://patches.dpdk.org/api/patches/133788/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231102172849.7400-3-bruce.richardson@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": "<20231102172849.7400-3-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20231102172849.7400-3-bruce.richardson@intel.com", "date": "2023-11-02T17:28:48", "name": "[24.03,RFC,2/3] eal: allow export of the cmdline argument parsing options", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "5d2083474cc3a0d7417e122dc7b954f6dce0172b", "submitter": { "id": 20, "url": "http://patches.dpdk.org/api/people/20/?format=api", "name": "Bruce Richardson", "email": "bruce.richardson@intel.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/20231102172849.7400-3-bruce.richardson@intel.com/mbox/", "series": [ { "id": 30120, "url": "http://patches.dpdk.org/api/series/30120/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30120", "date": "2023-11-02T17:28:46", "name": "Add argument manipulation library", "version": 1, "mbox": "http://patches.dpdk.org/series/30120/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/133788/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/133788/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 30DB843270;\n\tThu, 2 Nov 2023 18:33:08 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0140242D35;\n\tThu, 2 Nov 2023 18:32:57 +0100 (CET)", "from mgamail.intel.com (mgamail.intel.com [192.198.163.8])\n by mails.dpdk.org (Postfix) with ESMTP id 7409642D78\n for <dev@dpdk.org>; Thu, 2 Nov 2023 18:32:55 +0100 (CET)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 02 Nov 2023 10:29:06 -0700", "from silpixa00401385.ir.intel.com ([10.237.214.164])\n by fmsmga002.fm.intel.com with ESMTP; 02 Nov 2023 10:29:05 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1698946376; x=1730482376;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=MPUtgZ9ZahngBU8EdpLn+V8ammi2KYwVQKaOmX9LF7A=;\n b=gFOoj225HCp53Zg7uKzXwBbaj4TLCGHMK/5dYiNtrL7K7ou3FmgLK+Y6\n xrLNFIDKeOR0vP8cPJYRpEFRtakRRvOylntCjPaRSTq552ScjBvv9pOYC\n +jjrPVxkJ2Woa2zb8v4EZo/5Gz77TIRnAVkPCzvyaaX63GHm5gzBKLdXc\n ttywNTirirkaGwrB42vE74J7TekFSlapthNX+hxml4rGOVyXllkChkvpn\n IBwqfcVWlWi4BgqdvTwn/iaSgZLmQeJUkMRWn2hB+d7mbrLuUaSlTxIYV\n AA4Mkb464J+mn7jGvunMEZ9foKU9fqbnKGMdBhleMROwk/KcyUA0Hr1ql g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10882\"; a=\"1645212\"", "E=Sophos;i=\"6.03,272,1694761200\";\n d=\"scan'208\";a=\"1645212\"", "E=McAfee;i=\"6600,9927,10882\"; a=\"878330507\"", "E=Sophos;i=\"6.03,272,1694761200\"; d=\"scan'208\";a=\"878330507\"" ], "X-ExtLoop1": "1", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>", "Subject": "[24.03 RFC 2/3] eal: allow export of the cmdline argument parsing\n options", "Date": "Thu, 2 Nov 2023 17:28:48 +0000", "Message-Id": "<20231102172849.7400-3-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.39.2", "In-Reply-To": "<20231102172849.7400-1-bruce.richardson@intel.com>", "References": "<20231102172849.7400-1-bruce.richardson@intel.com>", "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": "Allow other libraries in DPDK to know about the options EAL takes, by\nexporting the long and short getopt options via an internal-only\nfunction.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n lib/eal/common/eal_common_options.c | 9 +++++++++\n lib/eal/include/rte_eal.h | 14 ++++++++++++++\n lib/eal/version.map | 1 +\n 3 files changed, 24 insertions(+)", "diff": "diff --git a/lib/eal/common/eal_common_options.c b/lib/eal/common/eal_common_options.c\nindex a6d21f1cba..e26f66ea07 100644\n--- a/lib/eal/common/eal_common_options.c\n+++ b/lib/eal/common/eal_common_options.c\n@@ -175,6 +175,15 @@ rte_set_application_usage_hook(rte_usage_hook_t usage_func)\n \treturn old_func;\n }\n \n+__rte_internal\n+int\n+rte_eal_getopt_params(const char **shortopts, const struct option **longopts)\n+{\n+\t*shortopts = eal_short_options;\n+\t*longopts = eal_long_options;\n+\treturn 0;\n+}\n+\n #ifndef RTE_EXEC_ENV_WINDOWS\n static char **eal_args;\n static char **eal_app_args;\ndiff --git a/lib/eal/include/rte_eal.h b/lib/eal/include/rte_eal.h\nindex cd318ee141..3bc5447abf 100644\n--- a/lib/eal/include/rte_eal.h\n+++ b/lib/eal/include/rte_eal.h\n@@ -514,6 +514,20 @@ __rte_internal\n int\n rte_eal_parse_coremask(const char *coremask, int *cores);\n \n+struct option;\n+/**\n+ * @internal\n+ * Return the getopt parameters used by EAL when parsing cmdline arguments\n+ *\n+ * @shortopts\n+ * Pointer for the short options for getopt\n+ * @longopts\n+ * Pointer for the longer options used by getopt_long\n+ */\n+__rte_internal\n+int\n+rte_eal_getopt_params(const char **shortopts, const struct option **longopts);\n+\n #ifdef __cplusplus\n }\n #endif\ndiff --git a/lib/eal/version.map b/lib/eal/version.map\nindex e00a844805..6c0a7145ff 100644\n--- a/lib/eal/version.map\n+++ b/lib/eal/version.map\n@@ -421,6 +421,7 @@ INTERNAL {\n \trte_bus_register;\n \trte_bus_unregister;\n \trte_eal_get_baseaddr;\n+\trte_eal_getopt_params;\n \trte_eal_parse_coremask;\n \trte_firmware_read;\n \trte_intr_allow_others;\n", "prefixes": [ "24.03", "RFC", "2/3" ] }{ "id": 133788, "url": "