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 935EF41C58; Fri, 10 Feb 2023 02:07:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 653D240EE3; Fri, 10 Feb 2023 02:07:29 +0100 (CET) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id 29FA640EDB for ; Fri, 10 Feb 2023 02:07:28 +0100 (CET) Received: by mail-pj1-f48.google.com with SMTP id s89-20020a17090a2f6200b0023125ebb4b1so4032823pjd.3 for ; Thu, 09 Feb 2023 17:07:27 -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=ldRSSRGpnuPUbSMcU90dk7v36zx+3KaED9kwZ5Bkb34=; b=RGybyEz7kdss7ZSq+ncdoiod0Otq30vJcvfAbd19TRI/AvglTGmfb2EG6Fw5Mk6hCP WPCoJaTjoyijAUXC0t1AsRscwCO9kwu1P0j/3lAkdWujoBp0b0g/gwcw6tHkkiR+M1xJ 0EulvDEsr+uf8Nl9kDsViFUfYOFvZ8JozY3Cq2P+se5aH/FuTmqLDa6XzJ0C72YIifUh 2J1Ww+TvZf7IFrEgYpSNXfhz91Vl3w2TYsEWPLm/lrVh8HpOxpFYig47gErs9MYM474D JA1VGswROftB/zSO7WnCO5v+TQRuUesWNpcELQ3tmVWUqqTRtLIilh+EncZ7nXzlMOeO 5C5Q== 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=ldRSSRGpnuPUbSMcU90dk7v36zx+3KaED9kwZ5Bkb34=; b=pepbNNLAG6v9O5DB4aKpXjeDnKNX0AFw396Bw5Lr+azEnhyVZIeHK5bCtqvDmiRuGs 1ATA5WBlkwSIKPNYbxOuf4Dmeof2PwCq2kUi0rpkZDuaYLicZoC+KYd4mTHLVxnDoRpN KZ1zv5ycbgofFReSyDX/8VhtBNYj79UGaKMQ/undLtOT9Hu78NjTT3Kxk7VNPTQHNnlW 7KxVjb5jQNBYK2R/8auFZVsT0OzsesFn7M7HpTaCL7e2rj0tvivPiQ2RuyfNp27+rvsu H/rS+ndU6AkX/QWnE2fWsleSlPBvz62aKyjCEilyB3nwlROyHL/ZpbcnB5dQRAc4/o75 zyWA== X-Gm-Message-State: AO0yUKW6Gf4/zWMlYjvtbqCJtLzTQP0mBe1Q6s+TmEGuNXFRh9cBbhko JdCowtKzqpNZzjIGd2+uGAvCcK5Mx52kUs34v+0= X-Google-Smtp-Source: AK7set9cHhKRpYDyrj+DMCTadkhmcybp7qEnUp3f/mVoPjXSt/ujoTCpx1xC7aLbSBEJTpwJxo1MDg== X-Received: by 2002:a17:903:2444:b0:189:5ef4:6ae9 with SMTP id l4-20020a170903244400b001895ef46ae9mr15873907pls.45.1675991246880; Thu, 09 Feb 2023 17:07:26 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id jd9-20020a170903260900b0019625428cefsm2103023plb.281.2023.02.09.17.07.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Feb 2023 17:07:26 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v3 00/16] Replace use of static logtypes Date: Thu, 9 Feb 2023 17:07:08 -0800 Message-Id: <20230210010724.890413-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230207204151.1503491-1-stephen@networkplumber.org> References: <20230207204151.1503491-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 This patchset removes the main uses of static LOGTYPE's in DPDK libraries. It starts with the easy one and goes on to the more complex ones. It does not address the larger effort which is the eal, eventdev, cryptodev, and pmd log types. Mostly this is semi-automatic conversion but some places like hash required some additional steps. v2 - fix some warnings and also do table and pipeline Stephen Hemminger (16): gso: remove logtype log: drop unused RTE_LOGTYPE_TIMER efd: replace RTE_LOGTYPE_EFD with local type mbuf: replace RTE_LOGTYPE_MBUF with dynamic type acl: replace LOGTYPE_ACL with dynamic type power: replace RTE_LOGTYPE_POWER with dynamic type ring: replace RTE_LOGTYPE_RING with dynamic type mempool: replace RTE_LOGTYPE_MEMPOOL with dynamic type lpm: replace RTE_LOGTYPE_LPM with dynamic types kni: replace RTE_LOGTYPE_KNI with dynamic type hash: replace RTE_LOGTYPE_HASH with dynamic type sched: replace RTE_LOGTYPE_SCHED with dynamic type port: replace RTE_LOGTYPE_PORT with dynamic type table: convert RTE_LOGTYPE_TABLE to dynamic logtype app/test: remove use of RTE_LOGTYPE_PIPELINE pipeline: replace RTE_LOGTYPE_PIPELINE with dynamic log type app/test/test_acl.c | 3 +- app/test/test_table_acl.c | 50 +++-- app/test/test_table_pipeline.c | 40 ++-- lib/acl/acl_bld.c | 35 ++-- lib/acl/acl_gen.c | 20 +- lib/acl/acl_log.h | 13 ++ lib/acl/rte_acl.c | 14 +- lib/acl/tb_mem.c | 8 +- lib/eal/common/eal_common_log.c | 18 +- lib/eal/include/rte_log.h | 33 ++-- lib/efd/rte_efd.c | 106 +++++----- lib/fib/fib_log.h | 10 + lib/fib/rte_fib.c | 20 +- lib/fib/rte_fib6.c | 16 +- lib/gso/rte_gso.c | 3 +- lib/hash/rte_cuckoo_hash.c | 60 +++--- lib/hash/rte_fbk_hash.c | 10 +- lib/hash/rte_hash_crc.h | 6 +- lib/hash/rte_thash.c | 53 +++-- lib/hash/rte_thash_gfni.h | 24 +-- lib/hash/version.map | 4 + lib/kni/rte_kni.c | 63 +++--- lib/lpm/lpm_log.h | 9 + lib/lpm/rte_lpm.c | 15 +- lib/lpm/rte_lpm6.c | 20 +- lib/mbuf/mbuf_log.h | 10 + lib/mbuf/rte_mbuf.c | 20 +- lib/mbuf/rte_mbuf_dyn.c | 15 +- lib/mbuf/rte_mbuf_pool_ops.c | 5 +- lib/mempool/rte_mempool.c | 33 ++-- lib/mempool/rte_mempool_log.h | 10 + lib/mempool/rte_mempool_ops.c | 12 +- lib/pipeline/rte_pipeline.c | 242 +++++++++-------------- lib/port/rte_port_ethdev.c | 23 ++- lib/port/rte_port_eventdev.c | 23 ++- lib/port/rte_port_fd.c | 28 +-- lib/port/rte_port_frag.c | 21 +- lib/port/rte_port_kni.c | 22 ++- lib/port/rte_port_ras.c | 19 +- lib/port/rte_port_ring.c | 22 ++- lib/port/rte_port_sched.c | 16 +- lib/port/rte_port_source_sink.c | 82 ++++---- lib/port/rte_port_sym_crypto.c | 22 ++- lib/power/guest_channel.c | 48 ++--- lib/power/power_acpi_cpufreq.c | 118 ++++++------ lib/power/power_common.c | 11 +- lib/power/power_common.h | 7 +- lib/power/power_cppc_cpufreq.c | 129 +++++++------ lib/power/power_kvm_vm.c | 24 +-- lib/power/power_pstate_cpufreq.c | 166 ++++++++-------- lib/power/rte_power.c | 25 ++- lib/power/rte_power_empty_poll.c | 36 ++-- lib/power/rte_power_intel_uncore.c | 75 ++++---- lib/power/rte_power_pmd_mgmt.c | 37 ++-- lib/rib/rib_log.h | 9 + lib/rib/rte_rib.c | 12 +- lib/rib/rte_rib6.c | 12 +- lib/ring/rte_ring.c | 31 +-- lib/sched/rte_pie.c | 16 +- lib/sched/rte_sched.c | 299 ++++++++++++----------------- lib/sched/rte_sched_log.h | 11 ++ lib/table/rte_table_acl.c | 90 ++++----- lib/table/rte_table_array.c | 23 +-- lib/table/rte_table_hash_cuckoo.c | 30 +-- lib/table/rte_table_hash_ext.c | 34 ++-- lib/table/rte_table_hash_key16.c | 56 +++--- lib/table/rte_table_hash_key32.c | 62 +++--- lib/table/rte_table_hash_key8.c | 59 +++--- lib/table/rte_table_hash_lru.c | 35 ++-- lib/table/rte_table_lpm.c | 54 +++--- lib/table/rte_table_lpm_ipv6.c | 56 +++--- lib/table/rte_table_stub.c | 9 +- 72 files changed, 1477 insertions(+), 1375 deletions(-) create mode 100644 lib/acl/acl_log.h create mode 100644 lib/fib/fib_log.h create mode 100644 lib/lpm/lpm_log.h create mode 100644 lib/mbuf/mbuf_log.h create mode 100644 lib/mempool/rte_mempool_log.h create mode 100644 lib/rib/rib_log.h create mode 100644 lib/sched/rte_sched_log.h -- 2.39.1