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 93035436D8; Wed, 13 Dec 2023 02:44:59 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5101642E89; Wed, 13 Dec 2023 02:44:22 +0100 (CET) Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) by mails.dpdk.org (Postfix) with ESMTP id 9549F42E76 for ; Wed, 13 Dec 2023 02:44:17 +0100 (CET) Received: by mail-ot1-f51.google.com with SMTP id 46e09a7af769-6d84ddd642fso4837024a34.0 for ; Tue, 12 Dec 2023 17:44:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702431857; x=1703036657; 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=IHhjb2EorDRi+H13FCMeEIF6gYn9XQzoWGkAgUBDE3w=; b=SMNaSLsvZhX6cev0GRHnRQ8SkHOrax4z6QQsZFoKQdcCsoD8kfmdnMQS3xmGGUbsod feFykc2jOO7OQKn2QZym7Cox+aiihHglXxvaDNZdAE+ZMoWcBLnuEhUppaT4CPHP9n5H zth+WpGfZGR2Xw6nf3Pt1KvOu/Ufs6zggaAGErzbmTgeGHCqc6ofsNKczI6SxpZmwZpX B5CPDDC+vu+u0NkbkgI3Ab5sdpqb1onVihkQl9TQ7KMCEaw8HR2azTexx3IUEfjir22s y2jxR9qJNuPcNU2pQl+HagziLph8uElWQCp0G0Sy/dvlZj61rPfNQINbRsSyFlQvBcWI wHKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702431857; x=1703036657; 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=IHhjb2EorDRi+H13FCMeEIF6gYn9XQzoWGkAgUBDE3w=; b=EVdXqb9tLk9IoSPBO+e+an3qsdp7jWezgBMOzTxQ/0CkVqL8dIDMhhzPhK5edxZb+I NJwDdMyw9WAJPzj+ruKvxDvaJKJW44Olwq64ajLF7vve9zeFRTb20Pw4I/i5RAGIKwVb /3IpFR9YJsDa+1u6PFzrfGmKShu6gZZi/ysbm/XHkXQ5cH6y/E4jTjbFholaNZtvLOMv Ulr8fzKDmCwXnvD8o8iIz6jtv42ITa1waHVcu3cNW75cnEJj7AoK5n/c/3X2P9VH93c5 9x86tJ3QVShbUiM2kEDI7gEEmpvvkjKQ0aQssbiMncoFiPFKK0SkFFQVqhKstPJ4CI/u WA/Q== X-Gm-Message-State: AOJu0YxbZbs2On0hU9D8ghhLDN6Qo9ipsVZ98V+Q8Z1tXn3ECrlRB9SB nFc2/8RncJ1J//1F1ou8FJE9W6ZGW1MF2pYPbY7fyg== X-Google-Smtp-Source: AGHT+IFflGWOz6Cj0QhxiW2GVAY0BWk3yhQhiABkjM0tLyPeYnOgOA43YZ6rlnSk+8Bqy4nIHmCnqA== X-Received: by 2002:a05:6808:1442:b0:3b8:b063:adf6 with SMTP id x2-20020a056808144200b003b8b063adf6mr9207682oiv.83.1702431857003; Tue, 12 Dec 2023 17:44:17 -0800 (PST) Received: from hermes.lan (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id f7-20020aa79d87000000b006ce5b4ade28sm8988375pfq.174.2023.12.12.17.44.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 17:44:16 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH 07/26] net/dpaa2: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 17:42:23 -0800 Message-ID: <20231213014408.612051-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231213014408.612051-1-stephen@networkplumber.org> References: <20231213014408.612051-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.42.0