Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/124426/?format=api
http://patches.dpdk.org/api/patches/124426/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230222215541.158205-18-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": "<20230222215541.158205-18-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20230222215541.158205-18-stephen@networkplumber.org", "date": "2023-02-22T21:55:36", "name": "[v11,17/22] table: convert RTE_LOGTYPE_TABLE to dynamic logtype", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "5316efb1eb59d0cb92f746f1ae225d5b8abea241", "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/20230222215541.158205-18-stephen@networkplumber.org/mbox/", "series": [ { "id": 27146, "url": "http://patches.dpdk.org/api/series/27146/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27146", "date": "2023-02-22T21:55:19", "name": "Convert static log type values in libraries", "version": 11, "mbox": "http://patches.dpdk.org/series/27146/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/124426/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/124426/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 32FAD41D43;\n\tWed, 22 Feb 2023 22:57:29 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6870E43210;\n\tWed, 22 Feb 2023 22:56:29 +0100 (CET)", "from mail-pg1-f175.google.com (mail-pg1-f175.google.com\n [209.85.215.175])\n by mails.dpdk.org (Postfix) with ESMTP id 5213B431B6\n for <dev@dpdk.org>; Wed, 22 Feb 2023 22:56:06 +0100 (CET)", "by mail-pg1-f175.google.com with SMTP id 130so2549943pgg.3\n for <dev@dpdk.org>; Wed, 22 Feb 2023 13:56:06 -0800 (PST)", "from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218])\n by smtp.gmail.com with ESMTPSA id\n d7-20020aa78147000000b00571cdbd0771sm6400722pfn.102.2023.02.22.13.56.04\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 22 Feb 2023 13:56:05 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20210112.gappssmtp.com; s=20210112;\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=oVUrp0GCMkTK1yUJ+jrtCRyLKPkzZ/+SmyGcwBFg3qM=;\n b=IYQz8gB77PXqy53r+nZcLbsHrDKvJh8l+NQjiVeQZ36n/nlAdXrLRfurgpXLGvXBC1\n H2xrckfQ85i7wvqdOGE/URDloXA4h+IDTPBoUmsJyIZdrlRlbd9dfAuH7aFmCjaP8cdQ\n RktniOhFpnpLBObwfn3EeyfDAjUNzbqFzhnGScdLKgXeNx+wuGVordn5lbu+Qpl0vLHA\n sOXGXdx/W9jisx+aJoZ6sQAKZLy8xJHeb3gkT1DuzXC4QntaM7j1GGT5grNd7Qc2VQRg\n Abs6MtBxyBbYo0siwmZ3lr+hE5RV/lDY82xQab5GJfJKRNcJpaG/3p+nEmzTbAa797JP\n D5eA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\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=oVUrp0GCMkTK1yUJ+jrtCRyLKPkzZ/+SmyGcwBFg3qM=;\n b=Hwx2YOyf3zVlcvGUFnhb+ZHNdQmZvC35xjvOPyf2R4m3gClo2A9ieLl0i88Xnz5UZ8\n fR/y1jleRnVuRlxSWmchkEH1gVuSTZlbdYKPGSBPTz8EpeWvdOq/KYuLEMhj0zz4mTUX\n hUP0nTxIIfMgExeN5X2DhQs6z7vsy9DJjonZCl2Sx7rv6pwf0+NTMH3PgU6oLMdYMckM\n buiST3eHr3gM3X0Shrl91ZGP/PYHc8YGLedEmUvPEU+MZjh6c32QOF5YTHBmafkC3n6W\n pPiXTvof5P5JETpKeDzVIhbSkQKV6PT8I7uOvTgikeeo21Huk2aKo8tukUrDYokE8M+h\n Rpnw==", "X-Gm-Message-State": "AO0yUKXjNUvyuJHJ6KFdTKqqH3XZ3N3wZq747sHmhr46bgW/U2TZr7v4\n Z9dPHCysA6VVsKfbFOGkSCuctdoTSqrDDK48dCA=", "X-Google-Smtp-Source": "\n AK7set+Y1UHsCO9H/TvSz50s+mznSr2QgEy2f8nN1bt5qpIfxKU5DDIGh/1Ttavz1eSYTA145d8X3A==", "X-Received": "by 2002:a62:844e:0:b0:5a8:a56c:6144 with SMTP id\n k75-20020a62844e000000b005a8a56c6144mr10139875pfd.19.1677102965552;\n Wed, 22 Feb 2023 13:56:05 -0800 (PST)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "To": "dev@dpdk.org", "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "Subject": "[PATCH v11 17/22] table: convert RTE_LOGTYPE_TABLE to dynamic logtype", "Date": "Wed, 22 Feb 2023 13:55:36 -0800", "Message-Id": "<20230222215541.158205-18-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.39.1", "In-Reply-To": "<20230222215541.158205-1-stephen@networkplumber.org>", "References": "<20230207204151.1503491-1-stephen@networkplumber.org>\n <20230222215541.158205-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": "Use logtype suffixes for various components of this library.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/eal/common/eal_common_log.c | 1 -\n lib/eal/include/rte_log.h | 2 +-\n lib/table/rte_table_acl.c | 3 +++\n lib/table/rte_table_array.c | 3 +++\n lib/table/rte_table_hash_cuckoo.c | 3 +++\n lib/table/rte_table_hash_ext.c | 3 +++\n lib/table/rte_table_hash_key16.c | 3 +++\n lib/table/rte_table_hash_key32.c | 5 ++++-\n lib/table/rte_table_hash_key8.c | 5 ++++-\n lib/table/rte_table_hash_lru.c | 3 +++\n lib/table/rte_table_lpm.c | 3 +++\n lib/table/rte_table_lpm_ipv6.c | 3 +++\n lib/table/rte_table_stub.c | 3 +++\n 13 files changed, 36 insertions(+), 4 deletions(-)", "diff": "diff --git a/lib/eal/common/eal_common_log.c b/lib/eal/common/eal_common_log.c\nindex 7f1d2c8a256d..d640ed3c88b9 100644\n--- a/lib/eal/common/eal_common_log.c\n+++ b/lib/eal/common/eal_common_log.c\n@@ -351,7 +351,6 @@ static const struct logtype logtype_strings[] = {\n \t{RTE_LOGTYPE_EAL, \"lib.eal\"},\n \t{RTE_LOGTYPE_PMD, \"pmd\"},\n \t{RTE_LOGTYPE_HASH, \"lib.hash\"},\n-\t{RTE_LOGTYPE_TABLE, \"lib.table\"},\n \t{RTE_LOGTYPE_PIPELINE, \"lib.pipeline\"},\n \t{RTE_LOGTYPE_CRYPTODEV, \"lib.cryptodev\"},\n \t{RTE_LOGTYPE_EVENTDEV, \"lib.eventdev\"},\ndiff --git a/lib/eal/include/rte_log.h b/lib/eal/include/rte_log.h\nindex b11aec69af78..934bddff9dfa 100644\n--- a/lib/eal/include/rte_log.h\n+++ b/lib/eal/include/rte_log.h\n@@ -40,7 +40,7 @@ extern \"C\" {\n \t\t\t\t /* was RTE_LOGTYPE_METER */\n \t\t\t\t /* was RTE_LOGTYPE_SCHED */\n \t\t\t\t /* was RTE_LOGTYPE_PORT */\n-#define RTE_LOGTYPE_TABLE 14 /**< Log related to table. */\n+\t\t\t\t /* was RTE_LOGTYPE_TABLE */\n #define RTE_LOGTYPE_PIPELINE 15 /**< Log related to pipeline. */\n \t\t\t\t /* was RTE_LOGTYPE_MBUF */\n #define RTE_LOGTYPE_CRYPTODEV 17 /**< Log related to cryptodev. */\ndiff --git a/lib/table/rte_table_acl.c b/lib/table/rte_table_acl.c\nindex 53fd5c66adb5..f44a25a89405 100644\n--- a/lib/table/rte_table_acl.c\n+++ b/lib/table/rte_table_acl.c\n@@ -11,6 +11,9 @@\n \n #include \"rte_table_acl.h\"\n \n+RTE_LOG_REGISTER_SUFFIX(table_acl_logtype, acl, INFO);\n+#define RTE_LOGTYPE_TABLE table_acl_logtype\n+\n #ifdef RTE_TABLE_STATS_COLLECT\n \n #define RTE_TABLE_ACL_STATS_PKTS_IN_ADD(table, val) \\\ndiff --git a/lib/table/rte_table_array.c b/lib/table/rte_table_array.c\nindex 54a0c42f7dd2..a7849beaecd6 100644\n--- a/lib/table/rte_table_array.c\n+++ b/lib/table/rte_table_array.c\n@@ -11,6 +11,9 @@\n \n #include \"rte_table_array.h\"\n \n+RTE_LOG_REGISTER_SUFFIX(table_array_logtype, array, INFO);\n+#define RTE_LOGTYPE_TABLE table_array_logtype\n+\n #ifdef RTE_TABLE_STATS_COLLECT\n \n #define RTE_TABLE_ARRAY_STATS_PKTS_IN_ADD(table, val) \\\ndiff --git a/lib/table/rte_table_hash_cuckoo.c b/lib/table/rte_table_hash_cuckoo.c\nindex c77eccf52722..12db0b84142f 100644\n--- a/lib/table/rte_table_hash_cuckoo.c\n+++ b/lib/table/rte_table_hash_cuckoo.c\n@@ -10,6 +10,9 @@\n \n #include \"rte_table_hash_cuckoo.h\"\n \n+RTE_LOG_REGISTER_SUFFIX(table_hash_logtype, hash, INFO);\n+#define RTE_LOGTYPE_TABLE table_hash_logtype\n+\n #ifdef RTE_TABLE_STATS_COLLECT\n \n #define RTE_TABLE_HASH_CUCKOO_STATS_PKTS_IN_ADD(table, val) \\\ndiff --git a/lib/table/rte_table_hash_ext.c b/lib/table/rte_table_hash_ext.c\nindex 70ea84fa2e51..147ecdf082cb 100644\n--- a/lib/table/rte_table_hash_ext.c\n+++ b/lib/table/rte_table_hash_ext.c\n@@ -11,6 +11,9 @@\n \n #include \"rte_table_hash.h\"\n \n+RTE_LOG_REGISTER_SUFFIX(table_hash_ext_logtype, hash.ext, INFO);\n+#define RTE_LOGTYPE_TABLE table_hash_ext_logtype\n+\n #define KEYS_PER_BUCKET\t4\n \n struct bucket {\ndiff --git a/lib/table/rte_table_hash_key16.c b/lib/table/rte_table_hash_key16.c\nindex 04d7fd64bd97..09fef5f14ce7 100644\n--- a/lib/table/rte_table_hash_key16.c\n+++ b/lib/table/rte_table_hash_key16.c\n@@ -11,6 +11,9 @@\n #include \"rte_table_hash.h\"\n #include \"rte_lru.h\"\n \n+RTE_LOG_REGISTER_SUFFIX(table_hash16_logtype, hash16, INFO);\n+#define RTE_LOGTYPE_TABLE table_hash16_logtype\n+\n #define KEY_SIZE\t\t\t\t\t\t16\n \n #define KEYS_PER_BUCKET\t\t\t\t\t4\ndiff --git a/lib/table/rte_table_hash_key32.c b/lib/table/rte_table_hash_key32.c\nindex 88d8f69c72ed..1abc459eee87 100644\n--- a/lib/table/rte_table_hash_key32.c\n+++ b/lib/table/rte_table_hash_key32.c\n@@ -11,7 +11,10 @@\n #include \"rte_table_hash.h\"\n #include \"rte_lru.h\"\n \n-#define KEY_SIZE\t\t\t\t\t\t32\n+RTE_LOG_REGISTER_SUFFIX(table_hash32_logtype, hash32, INFO);\n+#define RTE_LOGTYPE_TABLE table_hash32_logtype\n+\n+#define KEY_SIZE\t\t\t\t\t32\n \n #define KEYS_PER_BUCKET\t\t\t\t\t4\n \ndiff --git a/lib/table/rte_table_hash_key8.c b/lib/table/rte_table_hash_key8.c\nindex 035d24276946..d4ccccbcdf9e 100644\n--- a/lib/table/rte_table_hash_key8.c\n+++ b/lib/table/rte_table_hash_key8.c\n@@ -11,7 +11,10 @@\n #include \"rte_table_hash.h\"\n #include \"rte_lru.h\"\n \n-#define KEY_SIZE\t\t\t\t\t\t8\n+RTE_LOG_REGISTER_SUFFIX(table_hash8_logtype, hash8, INFO);\n+#define RTE_LOGTYPE_TABLE table_hash8_logtype\n+\n+#define KEY_SIZE\t\t\t\t\t8\n \n #define KEYS_PER_BUCKET\t\t\t\t\t4\n \ndiff --git a/lib/table/rte_table_hash_lru.c b/lib/table/rte_table_hash_lru.c\nindex c31acc11cf23..d0d2c8ba44df 100644\n--- a/lib/table/rte_table_hash_lru.c\n+++ b/lib/table/rte_table_hash_lru.c\n@@ -14,6 +14,9 @@\n \n #define KEYS_PER_BUCKET\t4\n \n+RTE_LOG_REGISTER_SUFFIX(table_hash_lru_logtype, hash_lru, INFO);\n+#define RTE_LOGTYPE_TABLE table_hash_lru_logtype\n+\n #ifdef RTE_TABLE_STATS_COLLECT\n \n #define RTE_TABLE_HASH_LRU_STATS_PKTS_IN_ADD(table, val) \\\ndiff --git a/lib/table/rte_table_lpm.c b/lib/table/rte_table_lpm.c\nindex 9de9e8a20d77..4a5c4a343c77 100644\n--- a/lib/table/rte_table_lpm.c\n+++ b/lib/table/rte_table_lpm.c\n@@ -13,6 +13,9 @@\n \n #include \"rte_table_lpm.h\"\n \n+RTE_LOG_REGISTER_SUFFIX(table_lpm_logtype, lpm, INFO);\n+#define RTE_LOGTYPE_TABLE table_lpm_logtype\n+\n #ifndef RTE_TABLE_LPM_MAX_NEXT_HOPS\n #define RTE_TABLE_LPM_MAX_NEXT_HOPS 65536\n #endif\ndiff --git a/lib/table/rte_table_lpm_ipv6.c b/lib/table/rte_table_lpm_ipv6.c\nindex 8fde2c012f7c..236eac4238d9 100644\n--- a/lib/table/rte_table_lpm_ipv6.c\n+++ b/lib/table/rte_table_lpm_ipv6.c\n@@ -12,6 +12,9 @@\n \n #include \"rte_table_lpm_ipv6.h\"\n \n+RTE_LOG_REGISTER_SUFFIX(table_lpm6_logtype, lpm6, INFO);\n+#define RTE_LOGTYPE_TABLE table_lpm6_logtype\n+\n #define RTE_TABLE_LPM_MAX_NEXT_HOPS 256\n \n #ifdef RTE_TABLE_STATS_COLLECT\ndiff --git a/lib/table/rte_table_stub.c b/lib/table/rte_table_stub.c\nindex 23d0de5c79b0..e74044032f7d 100644\n--- a/lib/table/rte_table_stub.c\n+++ b/lib/table/rte_table_stub.c\n@@ -8,6 +8,9 @@\n \n #include \"rte_table_stub.h\"\n \n+RTE_LOG_REGISTER_SUFFIX(table_stub_logtype, stub, INFO);\n+#define RTE_LOGTYPE_TABLE table_stub_logtype\n+\n #ifdef RTE_TABLE_STATS_COLLECT\n \n #define RTE_TABLE_LPM_STATS_PKTS_IN_ADD(table, val) \\\n", "prefixes": [ "v11", "17/22" ] }{ "id": 124426, "url": "