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 13611436E3; Wed, 13 Dec 2023 17:39:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B680C42F1D; Wed, 13 Dec 2023 17:38:41 +0100 (CET) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id C23A442EFD for ; Wed, 13 Dec 2023 17:38:38 +0100 (CET) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1d336760e72so19224795ad.3 for ; Wed, 13 Dec 2023 08:38:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485518; x=1703090318; 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=LRNt4cMC7ekeRVFATIIXIKTlf44Ax5phZ7jkwQ7JGaU=; b=Fap8Gb2S3lnEFJaIj7K4Jo8gCc9FRR8icn7dO6N+uWBQhY9/tMrWccAMyY+rmE5e88 CjrwKUmOxM8Fb/P68mH0QFbVKsYGalGZTsAcOQ3HbltE4TbrMo95TMAjGi/AbSEa3/Ul xzzXKBoAuZmprnDRN7bxuYEk0jXKFkx4/bEypw8iKbbbiGlWvRi8aAqKrV94uIMm3K8Z Z9T89b7GpRzrEVW/F88h5zm2d7eUsewjf7bOr7+ThZRduGmvKYb1g7G8vdldDEppRT59 IHHpIBBrIVfJSP4vyzX6p03zseOqLRLKOfydzaSNzr38BBEM/6i3rSNLL98bmAeF2QHr qdTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485518; x=1703090318; 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=LRNt4cMC7ekeRVFATIIXIKTlf44Ax5phZ7jkwQ7JGaU=; b=SCRlOZ+WYJEXBwaTBNIfDyJVzSHtWcj0B8VOqE0TdHBU1jTCrLlZRMwIFvD1Laj8zk 0yiaIdEE7jVc9Z9d4mKoWxVKKIm2E/4tHIlMkBvbxTc9bsMa/cof1gIMaHuOB9i7ii2J ElL/qR+MfeqbgfYDzqCVNkBkXNgRltGxY76tZOMRAnDOBnwkyKYnPt49NQPyU6Hly0q3 ANn2oalcaCp3Z5An5OvSOZnlZ57g3CW2RMb/FLPkgrObc23f30xM1g7XAOtJlPX8T0yI kiOkvbMljc03hcCieyA1DpCsIw2FA6Hs2eukP8OgJUlGpAKXvxHrhsBUns2cmqxBDNrH K8Rg== X-Gm-Message-State: AOJu0YyMZ9JFgSVkxDcTy/YKFZH8V+1jt16TUkQ3RbuN5rbMXrdj8WtN sW8qA7OLh11Fx1dOv8DTUzlmkKmA9HDG9uoiEBs= X-Google-Smtp-Source: AGHT+IFn3af8a31UK6ui22zj1Yif22z3zj0J8SIudNCPgDvK1GpklsfRxpFFJrvBen3AjVxgq+otKw== X-Received: by 2002:a17:902:e88f:b0:1c9:c6f4:e0c3 with SMTP id w15-20020a170902e88f00b001c9c6f4e0c3mr10179517plg.62.1702485518051; Wed, 13 Dec 2023 08:38:38 -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.38.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:38:37 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v3 07/37] net/dpaa2: replace RTE_LOG_DP with rte_log_dp Date: Wed, 13 Dec 2023 08:35:41 -0800 Message-ID: <20231213163820.894987-8-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 Want datapath logs to use own logtype. Signed-off-by: Stephen Hemminger --- drivers/net/dpaa2/dpaa2_ethdev.c | 2 +- drivers/net/dpaa2/dpaa2_pmd_logs.h | 2 +- drivers/net/dpaa2/dpaa2_sparser.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 8e610b6bba30..71d57ab26062 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -2851,7 +2851,7 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev) return ret; } } - RTE_LOG(INFO, PMD, "%s: netdev created, connected to %s\n", + DPAA2_PMD_INFO("%s: netdev created, connected to %s\n", eth_dev->data->name, dpaa2_dev->ep_name); return 0; diff --git a/drivers/net/dpaa2/dpaa2_pmd_logs.h b/drivers/net/dpaa2/dpaa2_pmd_logs.h index c47ba8e10bfc..89bffc684e50 100644 --- a/drivers/net/dpaa2/dpaa2_pmd_logs.h +++ b/drivers/net/dpaa2/dpaa2_pmd_logs.h @@ -28,7 +28,7 @@ extern int dpaa2_logtype_pmd; /* DP Logs, toggled out at compile time if level lower than current level */ #define DPAA2_PMD_DP_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, fmt, ## args) + rte_log_dp(RTE_LOG_ ## level, dpaa2_logtype_pmd, fmt, ## args) #define DPAA2_PMD_DP_DEBUG(fmt, args...) \ DPAA2_PMD_DP_LOG(DEBUG, fmt, ## args) diff --git a/drivers/net/dpaa2/dpaa2_sparser.c b/drivers/net/dpaa2/dpaa2_sparser.c index 63463c4fbfd6..202996c5d05d 100644 --- a/drivers/net/dpaa2/dpaa2_sparser.c +++ b/drivers/net/dpaa2/dpaa2_sparser.c @@ -181,7 +181,7 @@ int dpaa2_eth_load_wriop_soft_parser(struct dpaa2_dev_priv *priv, priv->ss_iova = (uint64_t)(DPAA2_VADDR_TO_IOVA(addr)); priv->ss_offset += sp_param.size; - RTE_LOG(INFO, PMD, "Soft parser loaded for dpni@%d\n", priv->hw_id); + DPAA2_PMD_INFO("Soft parser loaded for dpni@%d\n", priv->hw_id); rte_free(addr); return 0; @@ -234,6 +234,6 @@ int dpaa2_eth_enable_wriop_soft_parser(struct dpaa2_dev_priv *priv, } rte_free(param_addr); - RTE_LOG(INFO, PMD, "Soft parser enabled for dpni@%d\n", priv->hw_id); + DPAA2_PMD_INFO("Soft parser enabled for dpni@%d\n", priv->hw_id); return 0; } -- 2.43.0