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 9A8CB436E3; Wed, 13 Dec 2023 17:40:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4751242F1D; Wed, 13 Dec 2023 17:40:13 +0100 (CET) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id A3DF942F04 for ; Wed, 13 Dec 2023 17:40:09 +0100 (CET) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1d30141d108so19257515ad.2 for ; Wed, 13 Dec 2023 08:40:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485609; x=1703090409; darn=dpdk.org; 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=49CSqXbalqG7YAhFsQRKAnA4ZuMuOwHyVx1FhtAxaF4=; b=z/TMaG6O8r7DgirFAkdMhgY9p3GA3DApRmUOgiKy/j35mpXIYecqZsBA+3JSNfPj1a VEb8pqq3aRsRJlayXvDLxI0zG0TJMUiSnMGgKTuK0a7ajKhfMzw8qAERhP3sOzV+/ORx sm2nsA4WwCV8LVr2LBCd81xaNF3L1OGZK3mi/w3ur+QUFk9pKyAqde9Ctt4oW14QxIU2 +ytS/AsolF9RKGOdiO5zV8yO7Y/N5CrriaqMnQlU9gPlAx5Qe1+G3gy7YhFI56nfZ12O KsDdtKCs6uA+1JY3IGeTcRCnIoI5ApLu0nD5L6dNAof/A6gwIwQKZR8aIm83Psgdtpw3 K8+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485609; x=1703090409; 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=49CSqXbalqG7YAhFsQRKAnA4ZuMuOwHyVx1FhtAxaF4=; b=tlq+iFQLF3Zr4quiw8aSdNtOs3WI+puJsRu6wYcOv6pr9N3b/fDtuqxEfsg6lztdSo BRSksrkld8kv6+mbB6AyHn31fRQe5iimApEYDc2wAI7Zqu2m8ogslxrezRRN/prx6Tbw mWUWdSsCOMEJpC2S7U3vPm3K3MafjV8ZW4zulrvpM0lX9HikKGiXnd/E3y1+TLL/b0hc whrIhWhT+gu2BGFAIeHLoAqmRzgf3acmKS1mcJnpRz/EblPR4zCh8GbzAiajz0nzVCw6 wTdGw4tXkvpCSluDCNv4pI3EFqC67V02amSOFiF6q1UFnp97SqK4S0YQ84LTZrD4CCQO /seA== X-Gm-Message-State: AOJu0Yzj/nfPfdB/MK49AmHMbPR9u99ag/xKVRYrJuORlFDIV+bqj4Hi Ezi75Khh4mSp9zMGeT1oKrGIoQdcJk4kYbIIFks= X-Google-Smtp-Source: AGHT+IHitC7eqq2hKdus7W9dDEN3BJxQgSjlQe3JteFlb+HoXqjQxTnIkEt4vCBtX4bLFMDMJjQrgQ== X-Received: by 2002:a17:902:a383:b0:1d0:84f1:6fb8 with SMTP id x3-20020a170902a38300b001d084f16fb8mr3302910pla.68.1702485608921; Wed, 13 Dec 2023 08:40:08 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id 4-20020a170902c24400b001d0a6f31519sm10749593plg.188.2023.12.13.08.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:40:08 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jochen Behrens Subject: [PATCH v3 16/37] net/vmxnet3: do not use PMD logtype Date: Wed, 13 Dec 2023 08:35:50 -0800 Message-ID: <20231213163820.894987-17-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231213163820.894987-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231213163820.894987-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 The driver used a slightly different (and older) format for datapath logs. Remove PMD logtype here. Signed-off-by: Stephen Hemminger --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 +- drivers/net/vmxnet3/vmxnet3_logs.h | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index e49191718aea..4fd704045fc4 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c @@ -1919,7 +1919,7 @@ vmxnet3_interrupt_handler(void *param) if (events == 0) goto done; - RTE_LOG(DEBUG, PMD, "Reading events: 0x%X", events); + PMD_DRV_LOG(DEBUG, "Reading events: 0x%X", events); vmxnet3_process_events(dev); done: vmxnet3_enable_intr(hw, *eventIntrIdx); diff --git a/drivers/net/vmxnet3/vmxnet3_logs.h b/drivers/net/vmxnet3/vmxnet3_logs.h index 74154e3a1a6d..058d704f82c9 100644 --- a/drivers/net/vmxnet3/vmxnet3_logs.h +++ b/drivers/net/vmxnet3/vmxnet3_logs.h @@ -11,28 +11,32 @@ extern int vmxnet3_logtype_init; "%s(): " fmt "\n", __func__, ## args) #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") +extern int vmxnet3_logtype_driver; + #ifdef RTE_LIBRTE_VMXNET3_DEBUG_RX #define PMD_RX_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) + rte_log(RTE_LOG_ ## level, vmxnet3_logtype_driver, \ + "%s(): " fmt "\n", __func__, ## args) #else #define PMD_RX_LOG(level, fmt, args...) do { } while(0) #endif #ifdef RTE_LIBRTE_VMXNET3_DEBUG_TX #define PMD_TX_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) + rte_log(RTE_LOG_ ## level, vmxnet3_logtype_driver, \ + "%s(): " fmt "\n", __func__, ## args) #else #define PMD_TX_LOG(level, fmt, args...) do { } while(0) #endif #ifdef RTE_LIBRTE_VMXNET3_DEBUG_TX_FREE #define PMD_TX_FREE_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) + rte_log(RTE_LOG_ ## level, vmxnet3_logtype_driver, \ + "%s(): " fmt "\n", __func__, ## args) #else #define PMD_TX_FREE_LOG(level, fmt, args...) do { } while(0) #endif -extern int vmxnet3_logtype_driver; #define PMD_DRV_LOG(level, fmt, args...) \ rte_log(RTE_LOG_ ## level, vmxnet3_logtype_driver, \ "%s(): " fmt "\n", __func__, ## args) -- 2.43.0