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 6275641C8C; Mon, 13 Feb 2023 20:59:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9923F42D59; Mon, 13 Feb 2023 20:59:40 +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 6E9CF42D49 for ; Mon, 13 Feb 2023 20:59:35 +0100 (CET) Received: by mail-pl1-f176.google.com with SMTP id b5so14697614plz.5 for ; Mon, 13 Feb 2023 11:59:35 -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=7EQ9IX0BofvZ12bha/K2Ehaj60YP6gwmJtQcob/2TmOGoj8TC7OF1TZO/RQ7EK8quj BHXyxS/1em0dKu2Na5tNVAjrNBUeyY9NaSqCMgWl00G7Ttu8+ynyknQcqNASfn8eI2Dv 9kd4D6jh3EzZl1MQYn+y+6Bjcb2HIHQqmtLcpL2a9zmYiYbYJ5xdf5sR1bOgm4jvmbvq k9+nneDSs4/6xdJu8OHiB5ZIrqrzrXP7Yzpxcy+vtX6QL2/0fG1hZUXkWPnq6H/5UjfB 24y+6p5qdQImy/+2YKTjluH61uH9hUStd3bE/8vHy0xPv7CkopB9Ce0u6SKd32q+0rBg vIXw== 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=YKLiiOQJfaXQ7XwQz1A6zyN0UvsDQKTK3NrRVMz8AOv3e8nBxK69WlWv1g0TupMq/e HjrEXPEcALCtRVCwSTAJO1H4eNFQbVPB2Um0hanEvQRkVjKdiwMCCgwjv8yTPSe8cmFY Q+YdJrx4km7NJes62/Vc/tX75aYXJe5Es5ZG8cQlvehsn6wbvCaQy9sZ9cxkggUt1O+a KG9FKzqQ9XlIdn+pLnnPAGnn5Ct0TY2bLiQC2f1cyIbPYzSfKQtricgbtBHyyS/mWF+7 7fvOhIrsM8E1/bini+JDt17z8bVnK+sVzYVDvEpg2yLhleJh4sTTBDI2E1uiRCIcDzt/ fMMw== X-Gm-Message-State: AO0yUKWiijljWesxBgINjKxKIvWHsiPN748yyAiObWMJ1CcOAhyb1oo1 KT9wBLEK+AGRKt5FmGLW63uC/hv7+eVdwZgtTyU= X-Google-Smtp-Source: AK7set+0y7sKko/+JQ4F2nmPX+dHUfOGuD+at194hdXjeR/rKm637iPfjcTQS8PNgpiUqngPwual+g== X-Received: by 2002:a17:903:120e:b0:193:1fc5:f611 with SMTP id l14-20020a170903120e00b001931fc5f611mr70527plh.38.1676318374400; Mon, 13 Feb 2023 11:59:34 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id n20-20020a170902d0d400b001994e74c094sm8578911pln.275.2023.02.13.11.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 11:59:33 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Byron Marohn , Yipeng Wang Subject: [PATCH v4 04/19] efd: replace RTE_LOGTYPE_EFD with dynamic type Date: Mon, 13 Feb 2023 11:55:36 -0800 Message-Id: <20230213195551.1146298-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230213195551.1146298-1-stephen@networkplumber.org> References: <20230207204151.1503491-1-stephen@networkplumber.org> <20230213195551.1146298-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