From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8709BA046B for ; Mon, 19 Aug 2019 13:42:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 568B21BEA2; Mon, 19 Aug 2019 13:42:13 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 7BFF91BE9C for ; Mon, 19 Aug 2019 13:42:12 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ED9E58003E7 for ; Mon, 19 Aug 2019 11:42:11 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-204-32.brq.redhat.com [10.40.204.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 368531001947 for ; Mon, 19 Aug 2019 11:42:10 +0000 (UTC) From: David Marchand To: dev@dpdk.org Date: Mon, 19 Aug 2019 13:41:48 +0200 Message-Id: <1566214919-32250-1-git-send-email-david.marchand@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.67]); Mon, 19 Aug 2019 11:42:11 +0000 (UTC) Subject: [dpdk-dev] [PATCH 00/11] Fixing log levels for dynamically loaded drivers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" All (but the Solarflare net driver) drivers currently do not care about the log level the user might have passed at init time. Convert existing drivers from rte_log_register to a new wrapper RTE_LOG_REGISTER that relies on rte_log_register_type_and_pick_level that handles this issue. -- David Marchand David Marchand (11): log: fix plugin level restore with patterns log: define logtype register wrapper for drivers drivers/baseband: use new logtype wrapper drivers/bus: use new logtype wrapper drivers/common: use new logtype wrapper drivers/compress: use new logtype wrapper drivers/crypto: use new logtype wrapper drivers/event: use new logtype wrapper drivers/mempool: use new logtype wrapper drivers/net: use new logtype wrapper drivers/raw: use new logtype wrapper drivers/baseband/fpga_lte_fec/fpga_lte_fec.c | 11 ++-- drivers/baseband/null/bbdev_null.c | 8 +-- drivers/baseband/turbo_sw/bbdev_turbo_software.c | 8 +-- drivers/bus/dpaa/dpaa_bus.c | 26 +++------ drivers/bus/fslmc/fslmc_bus.c | 9 +--- drivers/bus/ifpga/ifpga_bus.c | 8 +-- drivers/bus/vdev/vdev.c | 8 +-- drivers/bus/vmbus/vmbus_common.c | 8 +-- drivers/common/dpaax/dpaax_iova_table.c | 8 +-- drivers/common/octeontx/octeontx_mbox.c | 8 +-- drivers/common/octeontx2/otx2_common.c | 62 ++++++++-------------- drivers/common/qat/qat_logs.c | 18 +++---- drivers/compress/isal/isal_compress_pmd.c | 8 +-- drivers/compress/octeontx/otx_zip_pmd.c | 8 +-- drivers/compress/zlib/zlib_pmd.c | 8 +-- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 7 +-- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 6 +-- drivers/crypto/caam_jr/caam_jr.c | 8 +-- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 9 +--- drivers/crypto/dpaa_sec/dpaa_sec.c | 8 +-- drivers/crypto/kasumi/rte_kasumi_pmd.c | 6 +-- drivers/crypto/mvsam/rte_mrvl_pmd.c | 6 +-- drivers/crypto/null/null_crypto_pmd.c | 6 +-- drivers/crypto/octeontx/otx_cryptodev.c | 9 +--- drivers/crypto/openssl/rte_openssl_pmd.c | 6 +-- drivers/crypto/scheduler/rte_cryptodev_scheduler.c | 6 +-- drivers/crypto/snow3g/rte_snow3g_pmd.c | 6 +-- drivers/crypto/virtio/virtio_cryptodev.c | 35 ++++-------- drivers/crypto/zuc/rte_zuc_pmd.c | 6 +-- drivers/event/dpaa2/dpaa2_eventdev.c | 8 +-- drivers/event/octeontx/ssovf_evdev.c | 8 +-- drivers/event/octeontx/timvf_evdev.c | 8 +-- drivers/event/opdl/opdl_evdev.c | 9 +--- drivers/event/sw/sw_evdev.c | 8 +-- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 8 +-- drivers/mempool/octeontx/octeontx_fpavf.c | 8 +-- drivers/net/af_packet/rte_eth_af_packet.c | 8 +-- drivers/net/af_xdp/rte_eth_af_xdp.c | 8 +-- drivers/net/atlantic/atl_ethdev.c | 13 ++--- drivers/net/avp/avp_ethdev.c | 8 +-- drivers/net/axgbe/axgbe_ethdev.c | 13 ++--- drivers/net/bnx2x/bnx2x_ethdev.c | 13 ++--- drivers/net/bnxt/bnxt_ethdev.c | 8 +-- drivers/net/bonding/rte_eth_bond_pmd.c | 8 +-- drivers/net/dpaa2/dpaa2_ethdev.c | 8 +-- drivers/net/e1000/e1000_logs.c | 21 ++------ drivers/net/e1000/e1000_logs.h | 4 -- drivers/net/e1000/em_ethdev.c | 6 --- drivers/net/e1000/igb_ethdev.c | 6 --- drivers/net/ena/ena_ethdev.c | 13 ++--- drivers/net/enetc/enetc_ethdev.c | 8 +-- drivers/net/enic/enic_ethdev.c | 8 +-- drivers/net/failsafe/failsafe.c | 8 +-- drivers/net/fm10k/fm10k_ethdev.c | 13 ++--- drivers/net/hinic/hinic_pmd_ethdev.c | 8 +-- drivers/net/i40e/i40e_ethdev.c | 13 ++--- drivers/net/iavf/iavf_ethdev.c | 13 ++--- drivers/net/ice/ice_ethdev.c | 13 ++--- drivers/net/ifc/ifcvf_vdpa.c | 8 +-- drivers/net/ipn3ke/ipn3ke_ethdev.c | 8 +-- drivers/net/ixgbe/ixgbe_ethdev.c | 13 ++--- drivers/net/kni/rte_eth_kni.c | 8 +-- drivers/net/liquidio/lio_ethdev.c | 13 ++--- drivers/net/memif/rte_eth_memif.c | 8 +-- drivers/net/mlx4/mlx4.c | 8 ++- drivers/net/mlx5/mlx5.c | 8 ++- drivers/net/mvneta/mvneta_ethdev.c | 8 +-- drivers/net/mvpp2/mrvl_ethdev.c | 8 +-- drivers/net/netvsc/hn_ethdev.c | 13 ++--- drivers/net/nfp/nfp_net.c | 13 ++--- drivers/net/null/rte_eth_null.c | 8 +-- drivers/net/octeontx/octeontx_ethdev.c | 20 +++---- drivers/net/pcap/rte_eth_pcap.c | 8 +-- drivers/net/qede/qede_ethdev.c | 13 ++--- drivers/net/ring/rte_eth_ring.c | 8 +-- drivers/net/softnic/rte_eth_softnic.c | 9 +--- drivers/net/szedata2/rte_eth_szedata2.c | 13 ++--- drivers/net/tap/rte_eth_tap.c | 8 +-- drivers/net/thunderx/nicvf_ethdev.c | 20 +++---- drivers/net/vdev_netvsc/vdev_netvsc.c | 9 +--- drivers/net/vhost/rte_eth_vhost.c | 8 +-- drivers/net/virtio/virtio_ethdev.c | 13 ++--- drivers/net/vmxnet3/vmxnet3_ethdev.c | 13 ++--- drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 8 +-- drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 8 +-- drivers/raw/ifpga/ifpga_rawdev.c | 8 +-- drivers/raw/ioat/ioat_rawdev.c | 8 +-- drivers/raw/ntb/ntb.c | 8 +-- drivers/raw/skeleton/skeleton_rawdev.c | 8 +-- lib/librte_eal/common/eal_common_log.c | 2 +- lib/librte_eal/common/include/rte_log.h | 12 +++-- lib/librte_eal/rte_eal_version.map | 8 ++- 92 files changed, 273 insertions(+), 671 deletions(-) -- 1.8.3.1