Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/125600/?format=api
http://patches.dpdk.org/api/patches/125600/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230329234049.11071-9-stephen@networkplumber.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": "<20230329234049.11071-9-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20230329234049.11071-9-stephen@networkplumber.org", "date": "2023-03-29T23:40:35", "name": "[v12,08/22] examples/l3fwd-power: replace use of RTE_LOGTYPE_POWER", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "40e19158140ae86bcb6ec92a80e73137a8535f0a", "submitter": { "id": 27, "url": "http://patches.dpdk.org/api/people/27/?format=api", "name": "Stephen Hemminger", "email": "stephen@networkplumber.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/20230329234049.11071-9-stephen@networkplumber.org/mbox/", "series": [ { "id": 27577, "url": "http://patches.dpdk.org/api/series/27577/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27577", "date": "2023-03-29T23:40:27", "name": "Covert static log types in libraries to dynamic", "version": 12, "mbox": "http://patches.dpdk.org/series/27577/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/125600/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/125600/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 CB7FF42868;\n\tThu, 30 Mar 2023 01:41:43 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CC02242D3A;\n\tThu, 30 Mar 2023 01:41:09 +0200 (CEST)", "from mail-pl1-f170.google.com (mail-pl1-f170.google.com\n [209.85.214.170])\n by mails.dpdk.org (Postfix) with ESMTP id 5339D42D31\n for <dev@dpdk.org>; Thu, 30 Mar 2023 01:41:06 +0200 (CEST)", "by mail-pl1-f170.google.com with SMTP id u10so16477273plz.7\n for <dev@dpdk.org>; Wed, 29 Mar 2023 16:41:06 -0700 (PDT)", "from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218])\n by smtp.gmail.com with ESMTPSA id\n f10-20020a17090274ca00b0019c2b1c4db1sm23360095plt.239.2023.03.29.16.41.04\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 29 Mar 2023 16:41:04 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1680133265;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=bmHkGw6nNCA9ARYN6hfzHAuA7ojBoytfJWTsjpoxblc=;\n b=h0NMEmoZDZFyPT3QV+RM34fugJhn8QhgiZ6RQ/vAmscPMNSmBqxeZepN88O2qrzWLf\n efacK53n+NSwNuEiu3IQx4hkPwWZMTfT/5s+fioZIshf4Ks5KqnWi14QpfDjiIbWkxv+\n kxevaVrQLKU7ydHm64I0jbanM7vl4DXgXAS3W4xUSV6RwxvOf5u9eeuVpjfh/8y+P+jX\n uXJI7dOQ/o1dn9xSeXfXhcJUd+zEkkclufp3HT3ahkI6WkKI+WKSiQf6DtmFzKj+d+54\n 3f8n812r0XC7nPIiuZAdtQpMSnbUx5YF6u7WqCJsnQ5yQlrZ5iaMo3uFVpydIm6Fd8Bw\n 2Gmg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112; t=1680133265;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=bmHkGw6nNCA9ARYN6hfzHAuA7ojBoytfJWTsjpoxblc=;\n b=HpdnIdiIeSUfhbKu0Yyqffx5F0Dv4ZeVBG9KhSZacoAQRSzwuqX27np281YSBUXfxt\n gz+uoBU/V6GOOQ/h9q1thv81AI7Yl1kmo1hU2aUDjUD/OJp3RIsqqnCTwEudBSFRw1Bv\n R1gIYnqmP5sqQS7Lgyy20G9/4mTrJlx/M+FYeVNloYURV/yUeHeb9GLUpDNmSQAmKPYl\n VpoLzmJ6evXRG61amKSxP42PCeOIhM5DIqVvFAznKzhey46uAijhKSJCUzkFmhfxJfNL\n czhhf3JwYaUJRSMqotZmjOUc4HQ3gtmpZ+hdm8KtLohf8YNjpk5vEt8n2RBrQh35yQ4V\n px9g==", "X-Gm-Message-State": "AAQBX9ch3h8V+ei3IM6EoSm/Wc7pCoevDg+wkn230UolVSvF6zntF2Pe\n JsbR/gHNeX3+kPR8mupgd8Gdj+jgKlxvVROxSmLb1A==", "X-Google-Smtp-Source": "\n AKy350aPHHY2pMoa/iTMq3P2rGRtmjMiWCYKKdm+SBM8y6n4TeNya4n/B2bMXF9Sf5bBJRuvjqnNzg==", "X-Received": "by 2002:a17:902:cf51:b0:19f:3b86:4715 with SMTP id\n e17-20020a170902cf5100b0019f3b864715mr18473676plg.8.1680133265173;\n Wed, 29 Mar 2023 16:41:05 -0700 (PDT)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "To": "dev@dpdk.org", "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n David Hunt <david.hunt@intel.com>", "Subject": "[PATCH v12 08/22] examples/l3fwd-power: replace use of\n RTE_LOGTYPE_POWER", "Date": "Wed, 29 Mar 2023 16:40:35 -0700", "Message-Id": "<20230329234049.11071-9-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.39.2", "In-Reply-To": "<20230329234049.11071-1-stephen@networkplumber.org>", "References": "<20230329234049.11071-1-stephen@networkplumber.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": "Convert to using a dynamic logtype for the application.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\nAcked-by: David Hunt <david.hunt@intel.com>\n---\n examples/l3fwd-power/main.c | 17 +++++++++--------\n 1 file changed, 9 insertions(+), 8 deletions(-)", "diff": "diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c\nindex 3f01cbd9e277..f3330fd735dd 100644\n--- a/examples/l3fwd-power/main.c\n+++ b/examples/l3fwd-power/main.c\n@@ -51,7 +51,8 @@\n #include \"perf_core.h\"\n #include \"main.h\"\n \n-#define RTE_LOGTYPE_L3FWD_POWER RTE_LOGTYPE_USER1\n+RTE_LOG_REGISTER(l3fwd_power_logtype, l3fwd.power, INFO);\n+#define RTE_LOGTYPE_L3FWD_POWER l3fwd_power_logtype\n \n #define MAX_PKT_BURST 32\n \n@@ -2236,7 +2237,7 @@ init_power_library(void)\n \t\t/* init power management library */\n \t\tret = rte_power_init(lcore_id);\n \t\tif (ret) {\n-\t\t\tRTE_LOG(ERR, POWER,\n+\t\t\tRTE_LOG(ERR, L3FWD_POWER,\n \t\t\t\t\"Library initialization failed on core %u\\n\",\n \t\t\t\tlcore_id);\n \t\t\treturn ret;\n@@ -2246,8 +2247,8 @@ init_power_library(void)\n \t\tif (env != PM_ENV_ACPI_CPUFREQ &&\n \t\t\t\tenv != PM_ENV_PSTATE_CPUFREQ &&\n \t\t\t\tenv != PM_ENV_CPPC_CPUFREQ) {\n-\t\t\tRTE_LOG(ERR, POWER,\n-\t\t\t\t\"Only ACPI, PSTATE and CPPC mode are supported\\n\");\n+\t\t\tRTE_LOG(ERR, L3FWD_POWER,\n+\t\t\t\t\"Only ACPI and PSTATE mode are supported\\n\");\n \t\t\treturn -1;\n \t\t}\n \t}\n@@ -2264,7 +2265,7 @@ deinit_power_library(void)\n \t\t/* deinit power management library */\n \t\tret = rte_power_exit(lcore_id);\n \t\tif (ret) {\n-\t\t\tRTE_LOG(ERR, POWER,\n+\t\t\tRTE_LOG(ERR, L3FWD_POWER,\n \t\t\t\t\"Library deinitialization failed on core %u\\n\",\n \t\t\t\tlcore_id);\n \t\t\treturn ret;\n@@ -2333,7 +2334,7 @@ update_telemetry(__rte_unused struct rte_timer *tim,\n \tret = rte_metrics_update_values(RTE_METRICS_GLOBAL, telstats_index,\n \t\t\t\t\tvalues, RTE_DIM(values));\n \tif (ret < 0)\n-\t\tRTE_LOG(WARNING, POWER, \"failed to update metrics\\n\");\n+\t\tRTE_LOG(WARNING, L3FWD_POWER, \"failed to update metrics\\n\");\n }\n \n static int\n@@ -2382,7 +2383,7 @@ launch_timer(unsigned int lcore_id)\n \t\t\t\trte_get_main_lcore());\n \t}\n \n-\tRTE_LOG(INFO, POWER, \"Bring up the Timer\\n\");\n+\tRTE_LOG(INFO, L3FWD_POWER, \"Bring up the Timer\\n\");\n \n \ttelemetry_setup_timer();\n \n@@ -2398,7 +2399,7 @@ launch_timer(unsigned int lcore_id)\n \t\t}\n \t}\n \n-\tRTE_LOG(INFO, POWER, \"Timer_subsystem is done\\n\");\n+\tRTE_LOG(INFO, L3FWD_POWER, \"Timer_subsystem is done\\n\");\n \n \treturn 0;\n }\n", "prefixes": [ "v12", "08/22" ] }{ "id": 125600, "url": "