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 0FACF41C8E; Tue, 14 Feb 2023 03:19:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6252342D41; Tue, 14 Feb 2023 03:19:30 +0100 (CET) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id C75B142D44 for ; Tue, 14 Feb 2023 03:19:24 +0100 (CET) Received: by mail-pf1-f178.google.com with SMTP id ct17so3669860pfb.12 for ; Mon, 13 Feb 2023 18:19:24 -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=5/DzZ9JWHiUJru5hQCshlksFxEyIkPfiUj4WWZKMq8hyKJUuKvbJpLIVfPHG+4Kb5s pCxwVKKj5e/Qk7PBJN/xQCOLyxmglAZ9LtU5tr37AQHPMZ9KDtLfgFBA8r44cf2Q+1/F Q2tWNvM7up0h4B1/+xx/X4QwDJvJcvud/XE5JopYE0Sbj7uZLUwOp2TgzNlOKW3B9qEc 2M6QM9A0XKK79UvBARjkEwFBY0jcQqnSAqziYcydS4ahObb0Iu8RV7f0GEuviDaLJZwp j9+ZcNCiwWu4N6OKzlh3if+c9czq6BZAqXSKsa8nO8jxI35nmQ7j1XodGYjoJTJvI2GW Ujkg== 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=5LKYChyjiKgVbVOLg5+ts5o0rFxsQp1E2KkisGPHTGGQeCmo9J/+QyluoZVuT1YbYn 8CtXtT8prVHJTw0o9vg0TjonLiptk/QubejgXUKnm70onAdY8gvWpXQ5VR+Vc3LgUAl0 fUScwjnj8CDPprxaUP5IKhH9k1hmSb9DVkseZnlGlUmzHDDfrr7tKf9jtwyyRFKTplVV 22Hqw5bOoN54C1APx9fsSvkjTU6lBYwbxeRBQHzmLnB4r7aI3qr37zdM3GruWKTentrC z9zWosHTG5iOCOzJceQxQGsbMutw9N/meDR1rVvJgaIb+UXqZpUMakWkS7DHm4IY5nMV Pttw== X-Gm-Message-State: AO0yUKVVF71lFE044KFa7Qc2Evj7KSbiRrhYJZ3zigI5T3kdEXNVXPXt HKNLoetDNq5v90u45H5xqL3+g/e/XwK7VbptC1s= X-Google-Smtp-Source: AK7set9+mP5pt4jwyaIeBmIriFaEdXJKA9yCkxHWSWpzUrE7MaBZymJnRFln55ZPsbU/TmfRo0Qixg== X-Received: by 2002:a62:84d3:0:b0:5a8:aa9c:8524 with SMTP id k202-20020a6284d3000000b005a8aa9c8524mr590711pfd.10.1676341163790; Mon, 13 Feb 2023 18:19:23 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id e16-20020aa78250000000b005a75d85c0c7sm8494840pfn.51.2023.02.13.18.19.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 18:19:23 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Byron Marohn , Yipeng Wang Subject: [PATCH v5 04/22] efd: replace RTE_LOGTYPE_EFD with dynamic type Date: Mon, 13 Feb 2023 18:18:50 -0800 Message-Id: <20230214021908.1396498-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230214021908.1396498-1-stephen@networkplumber.org> References: <20230207204151.1503491-1-stephen@networkplumber.org> <20230214021908.1396498-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