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 E8F3741C8E; Tue, 14 Feb 2023 03:19:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D04E040ED9; Tue, 14 Feb 2023 03:19:12 +0100 (CET) Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mails.dpdk.org (Postfix) with ESMTP id 9F53B40E2D for ; Tue, 14 Feb 2023 03:19:11 +0100 (CET) Received: by mail-pg1-f173.google.com with SMTP id x31so9354442pgl.6 for ; Mon, 13 Feb 2023 18:19:11 -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=Z6VFdGWmYPXjF7lerJ1vJysgDHBja0I4naBk9Y/zrpI=; b=T1E+5E8givzyD3MQdckjfnTdO5JljS1rgPwK4e2wpw1RDfLyh/5BKTSEd1AmBYimeQ xNqccLI1i82ms9Wg+7Xyk8PGN0utVf8etUCdDusHrgzr4UOqlYqXzGHVXQs9avlFtjcq LHl/DZm+UXlBS4s4f4xJG6pBPuq6yYpJmjpVtVOMrCbpHLfFBggflC5jItnvOJP1bMYt 5iGLSiOdSZW7VPyQ6Dcu5WO88lSQnHE+jql0zOsSR2bm4hofyjVoRuAvH9OkskVR6mQi kiVgKjbRdyVZGST9fEHpysMUfwcMRfOjDRPM+DrN1yRsLZKPGsz46MFmneaczCD2hZoA pbjQ== 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=Z6VFdGWmYPXjF7lerJ1vJysgDHBja0I4naBk9Y/zrpI=; b=Bfi4lVgDJoHWbo8S2U2B+CkCdAozfT3yuNcH5Eqa/7hRmV2zCYw7hQQOT9rU71T8Vp Op6WXoqFUP3d2wIQ2UDUQLGhl7uabaPKztxl/cDOmen0GdoNkBIS6XTP+FRVcwYsGsut VA1QLhZZEk0UCd8z/sRp9/8+5+XmmiVaqCF/BrB6/duwqemJMwkeXoqKDunaK4ZbG3XM YgETcKQD3JtxG0872YNhDdumTuDgu0YR3kyDuBjd/dMvl+4g7o4Je2O4QZ3fW3W5ffwt MWGpQVchDoqOiM9eZB44+DTRc+hIJREUt3WNGFjKoKRxfoBnKCyCcGZLP/0Bt/ba3ybJ qsXQ== X-Gm-Message-State: AO0yUKXcJTv/Nr98+4SHX8+cGwX+DQMRM7T2lI2rYyvXKXd17iBGJvs7 wCUuoDFiFX9k1GktB4WRv8nO68gXaSQKSn5oUL8= X-Google-Smtp-Source: AK7set8fnQpplkm4mIKCf0jyw6+QG70WjZIfMRI9/gluyT95sEUXGPvV1BxfwjertLxOUC5wtO0bSA== X-Received: by 2002:aa7:9f98:0:b0:5a8:18fa:2911 with SMTP id z24-20020aa79f98000000b005a818fa2911mr557938pfr.3.1676341150385; Mon, 13 Feb 2023 18:19:10 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 18:19:09 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v5 00/22] Replace us of static logtypes Date: Mon, 13 Feb 2023 18:18:46 -0800 Message-Id: <20230214021908.1396498-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. Note: there is one patch in this series that will get flagged incorrectly as an ABI change. v5 - fix use of LOGTYPE PORT and POWER in examples v4 - use simpler/shorter method for setting local LOGTYPE split up steps of some of the changes Stephen Hemminger (22): gso: don't log message on non TCP/UDP eal: drop no longer used GSO logtype log: drop unused RTE_LOGTYPE_TIMER efd: replace RTE_LOGTYPE_EFD with dynamic type mbuf: replace RTE_LOGTYPE_MBUF with dynamic type acl: replace LOGTYPE_ACL with dynamic type examples/power: replace use of RTE_LOGTYPE_POWER examples/l3fwd-power: replace use of RTE_LOGTYPE_POWER 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 sched: replace RTE_LOGTYPE_SCHED with dynamic type examples/ipsecgw: replace RTE_LOGTYPE_PORT 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 type hash: move rte_thash_gfni stubs out of header file hash: move rte_hash_set_alg out header hash: convert RTE_LOGTYPE_HASH to dynamic type app/test/test_acl.c | 3 +- app/test/test_table_acl.c | 50 +++++++++++------------ app/test/test_table_pipeline.c | 40 +++++++++---------- examples/distributor/main.c | 2 +- examples/ipsec-secgw/sa.c | 6 +-- examples/l3fwd-power/main.c | 15 +++---- lib/acl/acl_bld.c | 1 + lib/acl/acl_gen.c | 1 + lib/acl/acl_log.h | 4 ++ lib/acl/rte_acl.c | 4 ++ lib/acl/tb_mem.c | 3 +- lib/eal/common/eal_common_log.c | 17 -------- lib/eal/include/rte_log.h | 34 ++++++++-------- lib/efd/rte_efd.c | 3 ++ lib/fib/fib_log.h | 4 ++ lib/fib/rte_fib.c | 3 ++ lib/fib/rte_fib6.c | 2 + lib/gso/rte_gso.c | 5 +-- lib/hash/meson.build | 9 ++++- lib/hash/rte_cuckoo_hash.c | 5 +++ lib/hash/rte_fbk_hash.c | 3 ++ lib/hash/rte_hash_crc.c | 66 +++++++++++++++++++++++++++++++ lib/hash/rte_hash_crc.h | 46 +-------------------- lib/hash/rte_thash.c | 3 ++ lib/hash/rte_thash_gfni.c | 46 +++++++++++++++++++++ lib/hash/rte_thash_gfni.h | 28 +++---------- lib/hash/version.map | 5 +++ lib/kni/rte_kni.c | 3 ++ lib/lpm/lpm_log.h | 4 ++ lib/lpm/rte_lpm.c | 3 ++ lib/lpm/rte_lpm6.c | 1 + lib/mbuf/mbuf_log.h | 4 ++ lib/mbuf/rte_mbuf.c | 4 ++ lib/mbuf/rte_mbuf_dyn.c | 2 + lib/mbuf/rte_mbuf_pool_ops.c | 2 + lib/mempool/rte_mempool.c | 3 ++ lib/mempool/rte_mempool_log.h | 4 ++ lib/mempool/rte_mempool_ops.c | 1 + lib/pipeline/rte_pipeline.c | 3 ++ lib/port/rte_port_ethdev.c | 3 ++ lib/port/rte_port_eventdev.c | 4 ++ lib/port/rte_port_fd.c | 3 ++ lib/port/rte_port_frag.c | 3 ++ lib/port/rte_port_kni.c | 3 ++ lib/port/rte_port_ras.c | 3 ++ lib/port/rte_port_ring.c | 3 ++ lib/port/rte_port_sched.c | 3 ++ lib/port/rte_port_source_sink.c | 3 ++ lib/port/rte_port_sym_crypto.c | 3 ++ lib/power/guest_channel.c | 3 +- lib/power/power_common.c | 2 + lib/power/power_common.h | 3 +- lib/power/power_kvm_vm.c | 1 + lib/power/rte_power.c | 1 + lib/power/rte_power_empty_poll.c | 1 + lib/rib/rib_log.h | 4 ++ lib/rib/rte_rib.c | 3 ++ lib/rib/rte_rib6.c | 3 ++ lib/ring/rte_ring.c | 3 ++ lib/sched/rte_pie.c | 1 + lib/sched/rte_sched.c | 5 +++ lib/sched/rte_sched_log.h | 4 ++ lib/table/rte_table_acl.c | 3 ++ lib/table/rte_table_array.c | 3 ++ lib/table/rte_table_hash_cuckoo.c | 3 ++ lib/table/rte_table_hash_ext.c | 3 ++ lib/table/rte_table_hash_key16.c | 3 ++ lib/table/rte_table_hash_key32.c | 5 ++- lib/table/rte_table_hash_key8.c | 5 ++- lib/table/rte_table_hash_lru.c | 3 ++ lib/table/rte_table_lpm.c | 3 ++ lib/table/rte_table_lpm_ipv6.c | 3 ++ lib/table/rte_table_stub.c | 3 ++ 73 files changed, 375 insertions(+), 169 deletions(-) create mode 100644 lib/acl/acl_log.h create mode 100644 lib/fib/fib_log.h create mode 100644 lib/hash/rte_hash_crc.c create mode 100644 lib/hash/rte_thash_gfni.c 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