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 C91FA41C34; Wed, 8 Feb 2023 00:04:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A1977410D1; Wed, 8 Feb 2023 00:04:43 +0100 (CET) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mails.dpdk.org (Postfix) with ESMTP id B494940DDB for ; Wed, 8 Feb 2023 00:04:42 +0100 (CET) Received: by mail-pj1-f42.google.com with SMTP id f16-20020a17090a9b1000b0023058bbd7b2so405861pjp.0 for ; Tue, 07 Feb 2023 15:04:42 -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=mDG+uLWYv9TWqDKmBarDc1LT5p+5VryCDDTf3H/wE6I=; b=gLTo2/QofcEeRQNwAM7K2PtQxqdgvfgwKEM9Z24kQFWxCJgly3WFOx0nrlBM/JFi8h odfDeN9y4breX1qtiQlnjeCGITqDbNDc27WYE5js0ZUu8MgCtbt12Ze7O1REextnC0L0 1yvuXKFfPRcb6Bfe/OL6y5SmFHj/Adgb30PzuS1si8y81kjvEhKkn7rYlZu2lgErQvlJ MAl2f5JMZYJZ0thfJBpB0JqVDWlGvOFH4AiRGSBMKUcpXM3Xb5vHvUvbmdUNxKWIW+wr j2Auya0hGQa+Wxh91/NfJFHdIiSYnqkLdgyr9bELe+700zJKuKAkaXbdgFdX9JUiI/2U cWzQ== 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=mDG+uLWYv9TWqDKmBarDc1LT5p+5VryCDDTf3H/wE6I=; b=GSV+a+AR4rE2sWt+eiEdH4YQNtnPkudcY50YbUDhyPcfT5tHTbLPhiW59T+jcpF25j VNsSsOBnmo+AZ4CX1G+pQZcYmcl3Y4OruswMixTWeuSeuruWc217zw+ghj2Xd7lRXqC3 9fe4bysOb5ckAqxZDuKv5VZBqap0DAL3yqLP2LYaicXBHmXLvgfQoYnfsxisnd2LFWuw /xuzgQv8lh8CHc4UIfkQN1GoUkUHQxBNJKBRdN/0z5y0I/pcd/U6CPzwdFDYngIhomUf zcQZRXDS40uPY5cvCgoRH8bTbn4nJAJCLq22rOhoGxWssjbNr0yxkTVwlVWlVEFMGmf6 zj0A== X-Gm-Message-State: AO0yUKVNJe+LvAED2HbWRi3I1uP5Ex9g1ro+xvoL+mgzQ/i/1hDwPRRW XjTLmOMTGqaZs5Uzn4cNxhmtaYephDlgw+sstCQ= X-Google-Smtp-Source: AK7set/Gow6KwMjIedbEAKnPJHTClHL5mc5npwII/3FWG+gNlsHHhbTcEmIyAj0UrVIRQZnofRZL0g== X-Received: by 2002:a17:90b:314d:b0:22c:9419:d3eb with SMTP id ip13-20020a17090b314d00b0022c9419d3ebmr539765pjb.14.1675811081311; Tue, 07 Feb 2023 15:04:41 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id gq17-20020a17090b105100b0020dc318a43esm71189pjb.25.2023.02.07.15.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 15:04:40 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [RFC v2 00/17] static logtype removal Date: Tue, 7 Feb 2023 15:04:21 -0800 Message-Id: <20230207230438.1617331-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 Second draft of removing static log types. This version also fixes abuse of RTE_LOGTYPE_USER1 in some libraries. May split the USER1 stuff out into seperate patch bundle in later versions. Still left is the big device driver usage. Stephen Hemminger (17): doc: document intention to deprecate RTE_LOGTYPE_USER* ip_frag: use a dynamic logtype reorder: use a dynamic logtype latencystats: use dynamic logtype 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 app/test/test_acl.c | 3 +- .../prog_guide/writing_efficient_code.rst | 3 +- doc/guides/rel_notes/deprecation.rst | 4 + 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 | 16 +- lib/eal/include/rte_log.h | 29 +- lib/efd/rte_efd.c | 106 +++---- lib/fib/rte_fib.c | 23 +- lib/fib/rte_fib6.c | 21 +- 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/ip_frag/ip_frag_common.h | 16 +- lib/ip_frag/ip_frag_internal.c | 174 +++++----- lib/ip_frag/rte_ip_frag_common.c | 13 +- lib/ip_frag/rte_ipv4_reassembly.c | 14 +- lib/ip_frag/rte_ipv6_reassembly.c | 59 ++-- lib/kni/rte_kni.c | 63 ++-- lib/latencystats/rte_latencystats.c | 55 ++-- lib/lpm/rte_lpm.c | 18 +- lib/lpm/rte_lpm6.c | 25 +- 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/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 | 17 +- 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/reorder/rte_reorder.c | 35 ++- lib/rib/rte_rib.c | 14 +- lib/rib/rte_rib6.c | 16 +- lib/ring/rte_ring.c | 31 +- lib/sched/rte_pie.c | 16 +- lib/sched/rte_sched.c | 297 +++++++----------- lib/sched/rte_sched_log.h | 11 + 64 files changed, 1273 insertions(+), 1096 deletions(-) create mode 100644 lib/acl/acl_log.h create mode 100644 lib/mbuf/mbuf_log.h create mode 100644 lib/mempool/rte_mempool_log.h create mode 100644 lib/sched/rte_sched_log.h -- 2.39.1