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 755D541CF1; Tue, 21 Feb 2023 00:36:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 967174312C; Tue, 21 Feb 2023 00:36:09 +0100 (CET) Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by mails.dpdk.org (Postfix) with ESMTP id B70BE43120 for ; Tue, 21 Feb 2023 00:36:02 +0100 (CET) Received: by mail-pg1-f180.google.com with SMTP id i31so818292pgi.10 for ; Mon, 20 Feb 2023 15:36:02 -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=F0D+hj5Bg0vmf4yNAzBM9EKiuqa4HmHrh/mXAEir/+o=; b=J1atS77o9oZM2iOYi2/iL+TCoGUsSJVYvevze7YQMvk3AlMS9Kr2ndbtgPPNrFmg8d LGdKokNsA/jrwzJpJt7E0kpAqoCBBMJVpqJ16UwVp3Ak3LMV2tFO1QlluwLfG10AqFG/ nDuc7+n4pnNCnEzR+qrlSG+lfSow4+01By8XJIz5OpUUfJXPAakkZHsRhqyNzbXFq4f8 DEMzk/3XRj7lbgypTgzWkV5DPoKyVDsrDP4zLVzKx4Ukt883YLq15+CkebOsJG7qbWMw +S+Sc6bStGnZKxDOOyKkKYfIYDL1Q4mUES8K3kjfpaPUZaqYD6VqbU9cTELE1UNiEEEW rYFA== 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=F0D+hj5Bg0vmf4yNAzBM9EKiuqa4HmHrh/mXAEir/+o=; b=0sDGvT5CAzUbyx1m/pc0F53gnBGVbUWws97h9dV0+3WGPXDp18sdqfZ3QTNvKb3AOz oWEeuy3PxWqb17YrNdx2gU2biIAkHoYHU6QOWfwztNDkmfCB9LH6VHcvk9Ty5JDjt053 M32zF9ICebiAZP9TZAb667NasUFyHqtHiJ0tnPAZ4NLxF7ZefE97u+2oyAAS1Ri1ci2z 5x/QYyEKGIyMeLP2pM76EDMK6fSYiNmezGIKGGUTvAiCrtmuH43fYwZbA214C+t5NTbD kVk84Y+wesU9x+7wwhpgq6pZ8yv2PQ28fMtxuJMD9n+WxVqShZvEnWTi2FnMmHvC9V18 yzOQ== X-Gm-Message-State: AO0yUKUyyUgMR0fI50tHwPPj5PTqduQgZ7TGVYADZJLHOIM3flVsVCGE YF7ACU/tKeFbVyKtZPbLv7jMKerTD/yU67sQ1bM= X-Google-Smtp-Source: AK7set/Xs9NnmLu2qQHcjAHBkGWQIcEx1dy/b91nqCRN2aAL06yGOZTa8y3jOdGlZCIS1yRNZtsMgQ== X-Received: by 2002:a62:17c1:0:b0:593:c9b6:dc5d with SMTP id 184-20020a6217c1000000b00593c9b6dc5dmr3840338pfx.0.1676936161597; Mon, 20 Feb 2023 15:36:01 -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.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 15:36:01 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v8 04/22] efd: replace RTE_LOGTYPE_EFD with dynamic type Date: Mon, 20 Feb 2023 15:35:38 -0800 Message-Id: <20230220233556.168553-5-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 Replace all uses of the global logtype with a dynamic log type. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/efd/rte_efd.c | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/eal/common/eal_common_log.c b/lib/eal/common/eal_common_log.c index 5421da008f5b..25bb17938cc1 100644 --- a/lib/eal/common/eal_common_log.c +++ b/lib/eal/common/eal_common_log.c @@ -365,7 +365,6 @@ static const struct logtype logtype_strings[] = { {RTE_LOGTYPE_PIPELINE, "lib.pipeline"}, {RTE_LOGTYPE_MBUF, "lib.mbuf"}, {RTE_LOGTYPE_CRYPTODEV, "lib.cryptodev"}, - {RTE_LOGTYPE_EFD, "lib.efd"}, {RTE_LOGTYPE_EVENTDEV, "lib.eventdev"}, {RTE_LOGTYPE_USER1, "user1"}, {RTE_LOGTYPE_USER2, "user2"}, diff --git a/lib/eal/include/rte_log.h b/lib/eal/include/rte_log.h index 16d6ea31583d..0b39795b4d06 100644 --- a/lib/eal/include/rte_log.h +++ b/lib/eal/include/rte_log.h @@ -44,7 +44,7 @@ extern "C" { #define RTE_LOGTYPE_PIPELINE 15 /**< Log related to pipeline. */ #define RTE_LOGTYPE_MBUF 16 /**< Log related to mbuf. */ #define RTE_LOGTYPE_CRYPTODEV 17 /**< Log related to cryptodev. */ -#define RTE_LOGTYPE_EFD 18 /**< Log related to EFD. */ + /* was RTE_LOGTYPE_EFD */ #define RTE_LOGTYPE_EVENTDEV 19 /**< Log related to eventdev. */ /* was RTE_LOGTYPE_GSO */ diff --git a/lib/efd/rte_efd.c b/lib/efd/rte_efd.c index 686a13775742..9edb11799c89 100644 --- a/lib/efd/rte_efd.c +++ b/lib/efd/rte_efd.c @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -28,6 +29,9 @@ #include "rte_efd_arm64.h" #endif +RTE_LOG_REGISTER_DEFAULT(efd_logtype, INFO); +#define RTE_LOGTYPE_EFD efd_logtype + #define EFD_KEY(key_idx, table) (table->keys + ((key_idx) * table->key_len)) /** Hash function used to determine chunk_id and bin_id for a group */ #define EFD_HASH(key, table) \ -- 2.39.1