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 B6E7E41CA8; Wed, 15 Feb 2023 18:25:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C9E642DC6; Wed, 15 Feb 2023 18:24:22 +0100 (CET) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id D7A5F42D7E for ; Wed, 15 Feb 2023 18:24:08 +0100 (CET) Received: by mail-pf1-f178.google.com with SMTP id bw10so3348123pfb.0 for ; Wed, 15 Feb 2023 09:24:08 -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=7lk/v+W+lAyOcPDeXAp8DlcORIlRVEwDbJps6LNG59+I+6f/Z9wPP20pgwCvvo6xk6 lMeaUZxLFjbx9SwwLxWP65yxCpxQWoLy41OJNEY6SgKHQozIYPiRfx+Yrcc4X6fQ4ar3 CZEXJsxNkCw+TF9ytT2l4D4U2dPIyley2VhHX9i2sFiiRjUMacsQV7hg67DhskE1iO+7 q6R+eWVwtK7xrNVu0o8qZK9Bg/iOQ4s4oKVcTOKCCeVSlqmw6RjPWxAjojhiQZDhgCsp D+nTJtWfWTvA2+cC9A96QvKJJDSDST5wzNled2vD62vk8fzEU3UzNf6DgKACFCCe0UdD ix/Q== 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=ThT+GgOiWbLfeocxYiB6jLXQNh8/8SowSchk3+C6uXaUrEQb1YZfhhWi0+UIsi1C4E 5nNBg6HS5To8eQKn7a0hO3IOHoeG5Hg04MloLGpn3HNzHhJZ02HDkR56+tzpWfJ3c5XL F5EvojyOUiNjvBGhXJR9/cMIgLUdWj1RqS0UPexTt9gOmJ7qnLk1xGu0hmkHKLxvhdq3 nOWLD8i4+uMcQSd6GxPvqIpUwP9nBy324ghUj/xw23eugpIIkcsCfvQP90JGxb97Uskx D8lc8tkPyD22pef89qW2nWFpY9xoVvwaoD19gF30bWz8UJeZaprYbVYyyvLHfTesk2Cu vOgA== X-Gm-Message-State: AO0yUKX/uwmslktZzubf4XVCsp+MnVRx552cBxzV25yTXPx4BQqaH6Kf InNSNlyTH3e021uS4YQQ01bbMLcuRAALBkpd9U3pPg== X-Google-Smtp-Source: AK7set8v/0VHRMCtlthUl4kGskQjfWs2QrhYEuHKhdek8PiLiG16hYbxIjV2AQSaWJyLiNnSIP/O7Q== X-Received: by 2002:a05:6a00:1d0c:b0:5a8:4ae7:25d5 with SMTP id a12-20020a056a001d0c00b005a84ae725d5mr188213pfx.8.1676481847810; Wed, 15 Feb 2023 09:24:07 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id m7-20020aa79007000000b005a8da960fa8sm3705304pfo.144.2023.02.15.09.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 09:24:07 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH v7 19/22] pipeline: replace RTE_LOGTYPE_PIPELINE with dynamic type Date: Wed, 15 Feb 2023 09:23:38 -0800 Message-Id: <20230215172341.1525320-20-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215172341.1525320-1-stephen@networkplumber.org> References: <20230207204151.1503491-1-stephen@networkplumber.org> <20230215172341.1525320-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