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 54FAB41D43; Wed, 22 Feb 2023 22:56:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3D2FD43192; Wed, 22 Feb 2023 22:55:56 +0100 (CET) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id 81E264021F for ; Wed, 22 Feb 2023 22:55:53 +0100 (CET) Received: by mail-pl1-f176.google.com with SMTP id s5so10478025plg.0 for ; Wed, 22 Feb 2023 13:55:53 -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=zX1cV34UfG7jP7PfKJxhaIShOixt15azZEy8H0Fno5CYL3war4Ff6CLHJ5/0sogprR 2ELQZRdFe7mE/WChg3RZORIrCM4LTPgynW/MEj0zn5UkuRyR6t0fCuo1V5+E9jJjT27L bETgG7UAMKWW6IPD3uya13zOdqDmHU5UtrkCHz5BZ+P5ndvvS3bL/TyAa4u4IOQSn2y7 wRGg+HFdzBuVj7r+GR/CvKvUq9nAzx/iWY/YVO+FR769CVO3Fifao06vnk0NvJJHRQW2 YQgud6HG4iAzRQ7mKwR5720nkSGbCiWII/cHfVq4Xl3/rtRCqmeEgPHWmLWHRrell42g TW4w== 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=tOzfqAyLyfJE28pLqnp3164z7GP0w/b38qatILT5X40q0GI+TEMAtaMs3eY/qqNiMk vp7FZke1Ft2W79wDk/F0MirUEReieuCSgsh40SPOwlDug6oZGgHMA/BE21sbF9MMWFHA TYEBxatqQDIYAWHZhUq2x7SCoOfSbEimb5eu9KzTuVrVm25m/QK4rF3gyg0gvJxsFr8C J8EMyoPGhBK7ZoZn18BgvXs8C4LKRPBjXPznwTE/YO8n+sIS03L9eubBCoAr2Y5UP8Kt 4Xh27mjmfrymVljCguKtAfLFzBooMMfihyDqIVT74hT5lTsp2p/pMyHXzUU1ZwgHSvOo HdAg== X-Gm-Message-State: AO0yUKWF9qsR4S+7wZeQP00YlM3A3/9zGD8OhwhjvwM7Sl/Pu2wiP4x4 g2XQMK/dEetKGqdlJhx+JvCQlYNB7uIxCcAearY= X-Google-Smtp-Source: AK7set8RaxM+U6c2wd/E8nJhEyBtRPex5G9GHQ2IizkF32UrJQ205O0yswiSTmmYi9VnKRyQ5aUULQ== X-Received: by 2002:a05:6a21:6d9b:b0:bc:a63f:423c with SMTP id wl27-20020a056a216d9b00b000bca63f423cmr12797378pzb.11.1677102952464; Wed, 22 Feb 2023 13:55:52 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id d7-20020aa78147000000b00571cdbd0771sm6400722pfn.102.2023.02.22.13.55.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 13:55:51 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Byron Marohn , Yipeng Wang Subject: [PATCH v11 04/22] efd: replace RTE_LOGTYPE_EFD with dynamic type Date: Wed, 22 Feb 2023 13:55:23 -0800 Message-Id: <20230222215541.158205-5-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> <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 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