Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/120847/?format=api
http://patchwork.dpdk.org/api/patches/120847/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20221213182730.97065-5-bruce.richardson@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20221213182730.97065-5-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221213182730.97065-5-bruce.richardson@intel.com", "date": "2022-12-13T18:27:27", "name": "[RFC,4/7] telemetry: make array initialization more robust", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "41d9c6428b78515a530e5e596451e83fa90c320e", "submitter": { "id": 20, "url": "http://patchwork.dpdk.org/api/people/20/?format=api", "name": "Bruce Richardson", "email": "bruce.richardson@intel.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20221213182730.97065-5-bruce.richardson@intel.com/mbox/", "series": [ { "id": 26112, "url": "http://patchwork.dpdk.org/api/series/26112/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=26112", "date": "2022-12-13T18:27:23", "name": "Standardize telemetry int types", "version": 1, "mbox": "http://patchwork.dpdk.org/series/26112/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/120847/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/120847/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 B5441A0540;\n\tTue, 13 Dec 2022 19:28:15 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EDA8042D24;\n\tTue, 13 Dec 2022 19:27:57 +0100 (CET)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id D154740395\n for <dev@dpdk.org>; Tue, 13 Dec 2022 19:27:53 +0100 (CET)", "from orsmga006.jf.intel.com ([10.7.209.51])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Dec 2022 10:27:53 -0800", "from silpixa00401459.ir.intel.com (HELO\n silpixa00401459.ger.corp.intel.com) ([10.237.223.55])\n by orsmga006.jf.intel.com with ESMTP; 13 Dec 2022 10:27:52 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1670956074; x=1702492074;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=c/YwvSpj6ssxiZioC7ibUnQlx1mCa4ylmjtfqs6Xf64=;\n b=MoysRIySPQW4Wk2VH0TFi2bTJ0S2TEfe9wPPQMkKzLazzhWyC9JXaCv5\n bXf1nT6Qh1wZDnONGYT9tARMz7eL8iKTBxE8Y/EzWnFfH9BGTReqaduYR\n 3AVJBZDwjmiXPTSsD5qqvztRIKHvDpxSuodY3OsUtTsrN3ptvGWfwgM0f\n qxwzKz6o/WVq+m/jzDPORMXzLKKCS+lV/ZH6maTcLVsl6miCYHem+91mc\n IKfjBxhsAcrWtLHavuNdbqGYGGB1w8SaaOaUWOuDKxz0EeeMyrOifgGBY\n PAaGOEGifX5WysVgqgj4vD2w60N22spgbO8o0TwzjP4s9nhLpN9DhfRJ0 Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10560\"; a=\"382506984\"", "E=Sophos;i=\"5.96,242,1665471600\"; d=\"scan'208\";a=\"382506984\"", "E=McAfee;i=\"6500,9779,10560\"; a=\"626445216\"", "E=Sophos;i=\"5.96,242,1665471600\"; d=\"scan'208\";a=\"626445216\"" ], "X-ExtLoop1": "1", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>", "Subject": "[RFC PATCH 4/7] telemetry: make array initialization more robust", "Date": "Tue, 13 Dec 2022 18:27:27 +0000", "Message-Id": "<20221213182730.97065-5-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20221213182730.97065-1-bruce.richardson@intel.com>", "References": "<20221213182730.97065-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": "Rather than relying on a specific ordering of elements in the array\nmatching that of elements in the enum definition, we can explicitly mark\neach array entry using the equivalent enum value as an index.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n lib/telemetry/telemetry_data.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/lib/telemetry/telemetry_data.c b/lib/telemetry/telemetry_data.c\nindex d51724e1f5..9a180937fd 100644\n--- a/lib/telemetry/telemetry_data.c\n+++ b/lib/telemetry/telemetry_data.c\n@@ -16,10 +16,10 @@ int\n rte_tel_data_start_array(struct rte_tel_data *d, enum rte_tel_value_type type)\n {\n \tenum tel_container_types array_types[] = {\n-\t\t\tTEL_ARRAY_STRING, /* RTE_TEL_STRING_VAL = 0 */\n-\t\t\tTEL_ARRAY_INT, /* RTE_TEL_INT_VAL = 1 */\n-\t\t\tTEL_ARRAY_UINT, /* RTE_TEL_UINT_VAL = 2 */\n-\t\t\tTEL_ARRAY_CONTAINER, /* RTE_TEL_CONTAINER = 3 */\n+\t\t\t[RTE_TEL_STRING_VAL] = TEL_ARRAY_STRING,\n+\t\t\t[RTE_TEL_INT_VAL] = TEL_ARRAY_INT,\n+\t\t\t[RTE_TEL_UINT_VAL] = TEL_ARRAY_UINT,\n+\t\t\t[RTE_TEL_CONTAINER] = TEL_ARRAY_CONTAINER,\n \t};\n \td->type = array_types[type];\n \td->data_len = 0;\n", "prefixes": [ "RFC", "4/7" ] }{ "id": 120847, "url": "