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 2B3DA41CA8; Wed, 15 Feb 2023 18:24:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 900E142D2F; Wed, 15 Feb 2023 18:23:57 +0100 (CET) Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) by mails.dpdk.org (Postfix) with ESMTP id B312E42D2F for ; Wed, 15 Feb 2023 18:23:52 +0100 (CET) Received: by mail-pg1-f181.google.com with SMTP id z6so9115808pgk.0 for ; Wed, 15 Feb 2023 09:23:52 -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=xZ0MTdD5L24veoEma+g0ChLVeYBW8DlI38j2cBlhhoiUASs564RqjN3gi22R+VrN0e nHn2XwhPcBPWpjrGTm32NXkFFS4MCinKvFhkfH/ThcpOi+9qdIruLCuqtDdA//j97o6J 5Y46+8/1JUhU0iV0rlNyZyn/iJIlPChyCWImjBLVOebgxOWkoHYsnypNK1KKNQk0rkit gMiS1JENPAL1iurcWm9v+AGGMqrLoAOuV8rzhhkJxefZknyOmogqXfd290lVmdj5HNHN 7C878Fabf5tjUI/g2IRxH4vPbBEMw+HfhAYEzYZDD74sHYNYznnD+UnKSeD25TgIcb48 JD8g== 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=vhM4iUIePCAomHHOtw88BUhg7KCGdWi/maTgVRcgK9T4MC3r2QewBUmshit3Aj6YRL kKJIDTn4R1cd4kYJLaJV7QZo7b1A/MIs7zWc9g9tVifArwfu6ESECtdYyEK69l0UhS0F Ag7Cf7D0+YVOc+5cCbvGrdBEsAIgkZuce4vbXN/Z/gc6dyFEfvzW73JtMCwe7dwIO0BD 52O21a3Awa5qQgHFNNrRwZdXcTpQdPPgkOSPPmrJTJSHE3pspXBRHd16j06+9ReMVOhp v+VSDENHPgh5Uz6JRfU2kPbkpI84EI6F9cuzMupe7285wA/EGbtpmcv/iE8gx18d/oJY jy/w== X-Gm-Message-State: AO0yUKVRKfFafK7kHIDq8TEfIxSXrT7JOmelCY9qPkfXILC+u7+djhNU rSZkpznY2RkBahBl+uTR44BggrsDscrBSLVdBDknxw== X-Google-Smtp-Source: AK7set+NyLzmPqconcMciDOz0CmllhrEQuTkEX9PjwmZCc0TrSlI2k9v8ZNUBLmEFfwcCpeXW2UDOg== X-Received: by 2002:a05:6a00:178f:b0:5a8:4c8a:2ce4 with SMTP id s15-20020a056a00178f00b005a84c8a2ce4mr4826252pfg.3.1676481831567; Wed, 15 Feb 2023 09:23:51 -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.23.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 09:23:51 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Byron Marohn , Yipeng Wang Subject: [PATCH v7 04/22] efd: replace RTE_LOGTYPE_EFD with dynamic type Date: Wed, 15 Feb 2023 09:23:23 -0800 Message-Id: <20230215172341.1525320-5-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 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