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 12F5E430C3; Mon, 21 Aug 2023 18:10:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87D4E43266; Mon, 21 Aug 2023 18:10:07 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id BC39443267 for ; Mon, 21 Aug 2023 18:10:02 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-68a520dba33so837903b3a.0 for ; Mon, 21 Aug 2023 09:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1692634201; x=1693239001; 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=GaZBo8Q84sgG3NmBTtjQ7I1nggWkZyaznfCcGhB+7wc=; b=Umbf9FfHGdfi8YGTrQ4Fbk1f1ozrrFRuJpDDoh1shTHz1ElDOkFuwRDh2r4C3W+0Wz cMnE6NSYh0XbMInETUYcD9NdNFF9s59iNQ6RFZx9GUXoMHenSEsbAbFtmZBbpWAI17vF QG1Qsq3/xjFe2JAbGiPjIKNCsff1quphYZNNkX2EEbglM43LwOSJpkhjcPu+k89y5X/R 7q+waYiweprT5DHgc1lFFiGMvSWZw5ETRxagHnePIrKRLwZrcUycUzTz9D4AIg9BRj19 elAFiwoIkOpFaMhY9/e65HoYEA3Y7EvUeJPLaLd9qTFKq8XMswd4+Eac1zfKlxxi5H32 FZ0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692634201; x=1693239001; 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=GaZBo8Q84sgG3NmBTtjQ7I1nggWkZyaznfCcGhB+7wc=; b=jbwsUzaDZ6tsckC+loxvR3cj1q2K5kZ+nNKw3iEfv+kuxkFDoUJ4Jq5ReL7J0FaDHf paA6ZkhY133/lP4s2hc6dHErHseaUkZBUsR6+f7W8dgY8B3GadEvY4xrWURscvfyCtkE c/BNWEYsUqzcl1bjyD3l4kSaF3RNQrl4LZZe6mi2sSoFfoSwVqzLc6uL4nkgFT0iKAw4 2zU9dXYU8ZQOW0RCV+ZtwIoTJRQA5EKN7WoODLppLjaVJUHaroYrCrSAUagvArPEhanw 4lnGwGuhmDg/yQQcs6/YFuZTOmAlQOES+NxB1Zmy5Bw2WBye4rYVA633WV/5Ln5zsA+b kNow== X-Gm-Message-State: AOJu0YzF0C2Nvnxue0kXAp51v5dSUR68QThXzmP1D+ZjpHok+1uigm80 Iuzd9Q1tRV/pfjsE9s7abIx8jNytDz7bf9czYqAUU94X X-Google-Smtp-Source: AGHT+IG1G6jKxPoo1QhUeVD6S6k5MxY+a3PbndQmN3RxyhjfsNrW4HJ7r9c3I8WuNc8qgSFNpQYk5Q== X-Received: by 2002:a05:6a21:33a2:b0:148:82d6:aa16 with SMTP id yy34-20020a056a2133a200b0014882d6aa16mr8242481pzb.25.1692634201656; Mon, 21 Aug 2023 09:10:01 -0700 (PDT) Received: from hermes.local (204-195-127-207.wavecable.com. [204.195.127.207]) by smtp.gmail.com with ESMTPSA id i1-20020a17090332c100b001bf2dcfe352sm7208159plr.234.2023.08.21.09.10.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 09:10:01 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Honnappa Nagarahalli , Konstantin Ananyev Subject: [PATCH v13 10/21] ring: convert RTE_LOGTYPE_RING to dynamic type Date: Mon, 21 Aug 2023 09:09:10 -0700 Message-Id: <20230821160921.383832-11-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230821160921.383832-1-stephen@networkplumber.org> References: <20230329234049.11071-1-stephen@networkplumber.org> <20230821160921.383832-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 The logtype for ring only used in library. Signed-off-by: Stephen Hemminger --- lib/log/log.c | 1 - lib/log/rte_log.h | 2 +- lib/ring/rte_ring.c | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/log/log.c b/lib/log/log.c index 5ec3c16250f5..212c5d7b8669 100644 --- a/lib/log/log.c +++ b/lib/log/log.c @@ -352,7 +352,6 @@ struct logtype { static const struct logtype logtype_strings[] = { {RTE_LOGTYPE_EAL, "lib.eal"}, - {RTE_LOGTYPE_RING, "lib.ring"}, {RTE_LOGTYPE_MEMPOOL, "lib.mempool"}, {RTE_LOGTYPE_PMD, "pmd"}, {RTE_LOGTYPE_HASH, "lib.hash"}, diff --git a/lib/log/rte_log.h b/lib/log/rte_log.h index a1949e606395..4a1310385cf4 100644 --- a/lib/log/rte_log.h +++ b/lib/log/rte_log.h @@ -28,7 +28,7 @@ extern "C" { /* SDK log type */ #define RTE_LOGTYPE_EAL 0 /**< Log related to eal. */ /* was RTE_LOGTYPE_MALLOC */ -#define RTE_LOGTYPE_RING 2 /**< Log related to ring. */ + /* was RTE_LOGTYPE_RING */ #define RTE_LOGTYPE_MEMPOOL 3 /**< Log related to mempool. */ /* was RTE_LOGTYPE_TIMER */ #define RTE_LOGTYPE_PMD 5 /**< Log related to poll mode driver. */ diff --git a/lib/ring/rte_ring.c b/lib/ring/rte_ring.c index 057d25ff6f2f..12046419f194 100644 --- a/lib/ring/rte_ring.c +++ b/lib/ring/rte_ring.c @@ -26,6 +26,9 @@ #include "rte_ring.h" #include "rte_ring_elem.h" +RTE_LOG_REGISTER_DEFAULT(ring_logtype, INFO); +#define RTE_LOGTYPE_RING ring_logtype + TAILQ_HEAD(rte_ring_list, rte_tailq_entry); static struct rte_tailq_elem rte_ring_tailq = { -- 2.39.2