From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8F57B41CF1; Tue, 21 Feb 2023 00:37:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4BCF843177; Tue, 21 Feb 2023 00:36:35 +0100 (CET) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by mails.dpdk.org (Postfix) with ESMTP id 9C88D4313C for ; Tue, 21 Feb 2023 00:36:16 +0100 (CET) Received: by mail-pf1-f182.google.com with SMTP id a26so1445911pfo.9 for ; Mon, 20 Feb 2023 15:36:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eECXXGmntrXbA8+7KcILaCKIy+GGF4blhlaA75UYdDk=; b=6i1veO/cWuO/qnOMnCwY8PBd6jl3srxK7I5lTiuuYrZLoRDB5W2BevpNulK3yr13ze /TiGDnSXtlYZs7ZNPi7vApiPk42O46dg07gVEI93gJH8GCJOS/42hI0sUKPKrrpRxHD0 94oybFvrPvyxJkabUF994r72RW1p0BP0QYuqS063tWLHW7MXNrsQQrRm1WgAXIYXMLIf fyNa8lA8Ad3gaWHueY7Goe6UkfV0eP3du6f4hfXYgzEhNs5Z1uifdU3XAyxULq0H/xHN jGJlPb/TqO/7MW4gakr5DYA4RCQWpP7Cw0+5eOv1jhs+bkfAYMjZZYJGjph1Jq/TUO5j z8fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eECXXGmntrXbA8+7KcILaCKIy+GGF4blhlaA75UYdDk=; b=zH9NXR3oKqfJxI5Vx5adM2ukMkhYezYGjwb7vrEmhQ/nM3v1sjWvy/CF8sUgsCRJk7 FUOuqY9fjlqjHMi4GL/iNUOTadJq/ery9zlUgcviv1f9+SuChU9U/oi6mCbQLdXHNOsD IKrAVIYJqg3FYoyHqBPLXcBB7hlS2omPYVHYFISB2QHZnMatNZjQZhb7Gv/FvkVjtNFE Wso6bdpqw7P1MAY9xv0HYgzy0aDIfSuWLBR5acjMHmBuYDs691T/pAmc1qaEuaIVSoL+ Dr51oL0SveSi/0eFs0UnRpkVldHud3ZvTjknMxgD28DjGuWe4dpwnintz63oy1JyfrMK HaTA== X-Gm-Message-State: AO0yUKWzYtjXnzbsvJVdxd0Toblhc4igdFbHgb2RPA/sAo0xq1xz7oyR ktwvF+0KDX2GjKU+41UaCQ70R335PKFqdTk5F68= X-Google-Smtp-Source: AK7set+NIjNUXA0dBxNMD1aVI3lsh8uqNXz41ZT6QNqh8SDOLZFtMUxNIOXWGgduJ9czUFo9LyZngQ== X-Received: by 2002:a62:79c5:0:b0:5a9:4af:b05b with SMTP id u188-20020a6279c5000000b005a904afb05bmr1614801pfc.12.1676936175516; Mon, 20 Feb 2023 15:36:15 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id q19-20020a62e113000000b005a8dc935ec1sm8215908pfh.62.2023.02.20.15.36.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 15:36:14 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v8 19/22] pipeline: replace RTE_LOGTYPE_PIPELINE with dynamic type Date: Mon, 20 Feb 2023 15:35:53 -0800 Message-Id: <20230220233556.168553-20-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230220233556.168553-1-stephen@networkplumber.org> References: <20230207204151.1503491-1-stephen@networkplumber.org> <20230220233556.168553-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Use a dynamically allocated logtype. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/pipeline/rte_pipeline.c | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/eal/common/eal_common_log.c b/lib/eal/common/eal_common_log.c index d640ed3c88b9..a3498d1a2faf 100644 --- a/lib/eal/common/eal_common_log.c +++ b/lib/eal/common/eal_common_log.c @@ -351,7 +351,6 @@ static const struct logtype logtype_strings[] = { {RTE_LOGTYPE_EAL, "lib.eal"}, {RTE_LOGTYPE_PMD, "pmd"}, {RTE_LOGTYPE_HASH, "lib.hash"}, - {RTE_LOGTYPE_PIPELINE, "lib.pipeline"}, {RTE_LOGTYPE_CRYPTODEV, "lib.cryptodev"}, {RTE_LOGTYPE_EVENTDEV, "lib.eventdev"}, {RTE_LOGTYPE_USER1, "user1"}, diff --git a/lib/eal/include/rte_log.h b/lib/eal/include/rte_log.h index 934bddff9dfa..7473fd53505a 100644 --- a/lib/eal/include/rte_log.h +++ b/lib/eal/include/rte_log.h @@ -41,7 +41,7 @@ extern "C" { /* was RTE_LOGTYPE_SCHED */ /* was RTE_LOGTYPE_PORT */ /* was RTE_LOGTYPE_TABLE */ -#define RTE_LOGTYPE_PIPELINE 15 /**< Log related to pipeline. */ + /* was RTE_LOGTYPE_PIPELINE */ /* was RTE_LOGTYPE_MBUF */ #define RTE_LOGTYPE_CRYPTODEV 17 /**< Log related to cryptodev. */ /* was RTE_LOGTYPE_EFD */ diff --git a/lib/pipeline/rte_pipeline.c b/lib/pipeline/rte_pipeline.c index ff86c7cf96bf..30919cd9fe30 100644 --- a/lib/pipeline/rte_pipeline.c +++ b/lib/pipeline/rte_pipeline.c @@ -12,6 +12,9 @@ #include "rte_pipeline.h" +RTE_LOG_REGISTER_DEFAULT(pipeline_logtype, INFO); +#define RTE_LOGTYPE_PIPELINE pipeline_logtype + #define RTE_TABLE_INVALID UINT32_MAX #ifdef RTE_PIPELINE_STATS_COLLECT -- 2.39.1