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 1610A41C99; Tue, 14 Feb 2023 23:48:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3C61842FEA; Tue, 14 Feb 2023 23:47:58 +0100 (CET) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by mails.dpdk.org (Postfix) with ESMTP id C271342FE2 for ; Tue, 14 Feb 2023 23:47:53 +0100 (CET) Received: by mail-pj1-f45.google.com with SMTP id d13-20020a17090ad3cd00b0023127b2d602so225389pjw.2 for ; Tue, 14 Feb 2023 14:47: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=FrfwLdhV+EIM8WzjRK5TTqwgqLcuffFo4XoPQSRVVwc=; b=i98GXfP6LKqAsYYX/TqDDyLqr13SqYymMkZE+J7J2WFUjYc5EYs4C5jAWBcu+Gyar5 yMz5zLd5Zr1kf8NYiQJXvt1fcoZxFuVJWOMzLzyz3bhmAtV0GW1LGc7Y9ZDem3T1Yfp3 lXzwhG8P4W+Bq+/Skxg/U+lonSQgE6iuqOB7AOleTf8TIq3YYVv3N9awUthxnuI4uBKj Ig6LrQm5Ucm1+7U1YqmKthkfmcyYmINAMrZ702s/pVQdFl47zCLSqkBP572Xj8PlXxgC q7z3MoDHawmmBE7ot1MS9C2fe3wFoUmBZGWC0XXILJUiHfQRpMTPpFSmD4Du0o9uBMVX Rr7w== 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=FrfwLdhV+EIM8WzjRK5TTqwgqLcuffFo4XoPQSRVVwc=; b=XmjSU2FwnsVOWL6xek4gQ6qDC/ddMNaC7C9GUVCnMZ/eH4V2JPj8rXLs1d2e56/T06 CSsBh3zCHa5o6DZIRhD0lV7IOimwNTHF9HZFybhrTXFbMTRjf7cIvLIIUda04mCC996M 7yxzhRHzIoEqmtblxE/+I6VXlo9RRW2zrylrKnmfkOZhsA+TU8EjzbY+iabDA43HpHzT 0oa4Kn6L/Pp5jvnWP6zIz5uFFtT92wUh2TyLQnnOIs7n5Yo0358mBguP0+N19r+mPvN1 qZmf/eDgTfDSxZWiwr0F6wTgtSiK3vyHUtDMZInY7eoFXCWZ+gruSa/8i2liLE/HruYr 0u4g== X-Gm-Message-State: AO0yUKXvH3Ks6Hxto+TUog6AnKzE17QdcUa81/IEJhyKAekF6OJ1IJg7 PFufBMSpZojz6qA2T5krOgh9y4VTIqqdTZeQ2Ug= X-Google-Smtp-Source: AK7set8YmxelGMKO8ByQHPlMelH1CoQxE1O+aRGYCr5nbcsrwN+BWEuVq8gDB6F+++f/svgK6OLNjw== X-Received: by 2002:a17:902:fb07:b0:199:4fcc:b358 with SMTP id le7-20020a170902fb0700b001994fccb358mr208590plb.51.1676414873072; Tue, 14 Feb 2023 14:47:53 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id u9-20020a17090341c900b0019607984a5esm10735785ple.95.2023.02.14.14.47.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 14:47:52 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Byron Marohn , Yipeng Wang Subject: [PATCH v6 04/22] efd: replace RTE_LOGTYPE_EFD with dynamic type Date: Tue, 14 Feb 2023 14:47:17 -0800 Message-Id: <20230214224735.1404326-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230214224735.1404326-1-stephen@networkplumber.org> References: <20230207204151.1503491-1-stephen@networkplumber.org> <20230214224735.1404326-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 | 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 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..9cfa75bf93b0 100644 --- a/lib/efd/rte_efd.c +++ b/lib/efd/rte_efd.c @@ -28,6 +28,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