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 5169A42868; Thu, 30 Mar 2023 01:42:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 39BC742D5F; Thu, 30 Mar 2023 01:41:16 +0200 (CEST) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id 3ADC042D35 for ; Thu, 30 Mar 2023 01:41:12 +0200 (CEST) Received: by mail-pj1-f48.google.com with SMTP id q102so15617964pjq.3 for ; Wed, 29 Mar 2023 16:41:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1680133271; 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=Y22x/PMYLrqRgOMATwqnJE2b+z0HiVYvormDrFz/lWw=; b=OuCdw9xruK5SldeDtiNd+/LBpVeO5r6IyuhHdl2IErZkds/P1m3VR1RDfCYgBoec1M +4ZFi+iv+C5UOIOgwuwr82uTaGLJHZp62/aIcrDOar4C+QkxVH4klcbnyQZGsQKrvMuU pfDqfKZuNRU//4G5hP9KJd3XVi/VfWy8tGmacfjC6CGPE0sGI/vkbHsltP1Sjksm/Gz3 K5WpiGagOaD3jetsXRMOH4G1fx7p5q6S4az+HcE6JT8NWpTiyngpkonUR7Yn5vBtqFn8 ROyhWYxXIFZUNicO0uvIZ4NoaYXzm1WZWP7x/jNa3MOT2GPht7KyoYXh9GxpybwtskBu AOsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680133271; 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=Y22x/PMYLrqRgOMATwqnJE2b+z0HiVYvormDrFz/lWw=; b=DfUWTKmPG8+RcKpE9jrNG6JXPWGuyF9cRgyxf9s7K/kB1Mw4eWqpnOQFSXX8VpkrDS KhVxo4/2tUHKW4dKM8CYyVrv6wWRfgzjfqyTos/q+XL/biETnX2zzmO3pvgOuzsvDwU+ 5RBXRgalpw7rynao1ABVvH1zr+o8F8/BPOOzaJUo5D0CeEHAA8HbCA5joJDYZ68gVkvp LEIN4DshuoeCedl4unomPloG0tez2zmBPzmvUIbUs6vaWyrIZWd8HYOQS+2eQxs8UNS6 6QQmny0xl3ToPV6vqkq22m+8tW6nA3oYd+FPmzXJS21aopRBIlZIpyzkesLOiCb8+p3x /GRg== X-Gm-Message-State: AAQBX9c7MkRDKzCfrfcHZKE6HL8smCe38aDlfD4E5hQMZopHxpVMniJ1 dqkwMI8tJz7QeUQAW0ZIrhdarBc9DUpH8RfSM78btw== X-Google-Smtp-Source: AKy350YT3hFhYHoC3k4An9+YWU94d/oT9YfcBlCd7Kq3ASY3ojT4WCCv9HrWN2wm4wyVkkU7kBP3CA== X-Received: by 2002:a17:903:110e:b0:19e:9807:de48 with SMTP id n14-20020a170903110e00b0019e9807de48mr26729333plh.23.1680133271465; Wed, 29 Mar 2023 16:41:11 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id f10-20020a17090274ca00b0019c2b1c4db1sm23360095plt.239.2023.03.29.16.41.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 16:41:10 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v12 13/22] kni: convert RTE_LOGTYPE_KNI to dynamic type Date: Wed, 29 Mar 2023 16:40:40 -0700 Message-Id: <20230329234049.11071-14-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230329234049.11071-1-stephen@networkplumber.org> References: <20230329234049.11071-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 Even though KNI will eventually disappear, fix the logtype now. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/kni/rte_kni.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 6e2007e6ed4f..70d5bb7b1951 100644 --- a/lib/eal/common/eal_common_log.c +++ b/lib/eal/common/eal_common_log.c @@ -351,7 +351,6 @@ static const struct logtype logtype_strings[] = { {RTE_LOGTYPE_EAL, "lib.eal"}, {RTE_LOGTYPE_PMD, "pmd"}, {RTE_LOGTYPE_HASH, "lib.hash"}, - {RTE_LOGTYPE_KNI, "lib.kni"}, {RTE_LOGTYPE_METER, "lib.meter"}, {RTE_LOGTYPE_SCHED, "lib.sched"}, {RTE_LOGTYPE_PORT, "lib.port"}, diff --git a/lib/eal/include/rte_log.h b/lib/eal/include/rte_log.h index 115a48bf05f5..dc2454a0d9de 100644 --- a/lib/eal/include/rte_log.h +++ b/lib/eal/include/rte_log.h @@ -34,7 +34,7 @@ extern "C" { #define RTE_LOGTYPE_PMD 5 /**< Log related to poll mode driver. */ #define RTE_LOGTYPE_HASH 6 /**< Log related to hash table. */ /* was RTE_LOGTYPE_LPM */ -#define RTE_LOGTYPE_KNI 8 /**< Log related to KNI. */ + /* was RTE_LOGTYPE_KNI */ /* was RTE_LOGTYPE_ACL */ /* was RTE_LOGTYPE_POWER */ #define RTE_LOGTYPE_METER 11 /**< Log related to QoS meter. */ diff --git a/lib/kni/rte_kni.c b/lib/kni/rte_kni.c index bfa6a001ff59..b327bb28c45b 100644 --- a/lib/kni/rte_kni.c +++ b/lib/kni/rte_kni.c @@ -23,6 +23,9 @@ #include #include "rte_kni_fifo.h" +RTE_LOG_REGISTER_DEFAULT(kni_logtype, INFO); +#define RTE_LOGTYPE_KNI kni_logtype + #define MAX_MBUF_BURST_NUM 32 /* Maximum number of ring entries */ -- 2.39.2