From patchwork Wed Dec 13 04:16:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 135117 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B97E8436D9; Wed, 13 Dec 2023 05:20:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BD37842EF9; Wed, 13 Dec 2023 05:19:38 +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 95A6542EEC for ; Wed, 13 Dec 2023 05:19:36 +0100 (CET) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1d33877dda3so13255775ad.1 for ; Tue, 12 Dec 2023 20:19:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702441176; x=1703045976; 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=v1DEcQN2yPq75gJ2Ec1kIikVK2fhd9YD27BS6j1Pbhk=; b=Z620DZtmjKO9VlO/WMx+nrL2tYXhKPwF6mgGPnSlK2KFhgH3z0z7+9nQcwafGOr40g vqN0TiYu0wO/uawd23dc3wFHQWjRtQs+6pdvQD3Yxrv7WuetjFeNeGgTtEgVMYbm2NUR cdq6iycGv9EKOw0Pp2F3XrguNMr0SI5qaWSeJP1p1eBwloRbxeoQIWjms3So37FEBn2T M/YlSIqTVRjKhoo0xPZMG3jVV0EYnUuWIs96szyvOMLi2AP41zSVeYHlqTav2HoSXRhU XYYvFVh7wOqAIUmF0Q534IkzEXKxmdnkM2r24sTU1+FBfPPakxKXClJOaILmhkqpT6HU 17lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702441176; x=1703045976; 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=v1DEcQN2yPq75gJ2Ec1kIikVK2fhd9YD27BS6j1Pbhk=; b=QqbbsogKbG1/KY8Ii+7D4vAxRRHgLkYONEebJR0wHOnjnrEunfUr2EpEfpu4l/hsut Q6u1aEGm1LEEX2a1nHuMPER93HSvcs2myWVcyr3xAhkPtnxSBHu+yoDfzXmTAfwEkaKk SkExmYrAJzOv+IP/WZlGrdVmWOIWflwubpzA1EdGOA9xX1zmi9zLQ34a7z3NOA1DfCPX IrtRERjczn0LqHUIhvIL38U387ip1qKYt4y2aUqqij0O2eCx1Kx5gw+2m6qdZ6pZ2PLF Q0NyLfwY5Sh7gQj0VnXNOgv1142KcoXX6bDjq2CnTExiAlGh9WVHUcGkIF/fi3ApHCYD qUNw== X-Gm-Message-State: AOJu0Yxp3Is05QpeZHYA9IZhbL2kyrfY9ZO1gHFz9859WjM8D7WkMiOf X2Jf2gueWm/DwK/cmTO4q4vondSIIN89oZAiFr4= X-Google-Smtp-Source: AGHT+IHtyLCISc7j3AOKhpB+VeOob3OyzQG+jgEDNIDdCLzKCmhu+tlXrC/r/TgA7RA7AFaSuYMWdg== X-Received: by 2002:a17:902:c94d:b0:1d0:6ffd:e2bc with SMTP id i13-20020a170902c94d00b001d06ffde2bcmr8600009pla.86.1702441175783; Tue, 12 Dec 2023 20:19:35 -0800 (PST) Received: from hermes.lan (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p12-20020a170902e74c00b001d077da4ac4sm9340888plf.212.2023.12.12.20.19.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:19:35 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Vamsi Attunuru Subject: [PATCH v2 12/25] net/octeon_ep: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 20:16:39 -0800 Message-ID: <20231213041920.729403-13-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231213041920.729403-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231213041920.729403-1-stephen@networkplumber.org> MIME-Version: 1.0 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/octeon_ep/otx_ep_common.h | 7 +++++++ drivers/net/octeon_ep/otx_ep_rxtx.c | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/net/octeon_ep/otx_ep_common.h b/drivers/net/octeon_ep/otx_ep_common.h index 82e57520d38d..5fb63d051ac8 100644 --- a/drivers/net/octeon_ep/otx_ep_common.h +++ b/drivers/net/octeon_ep/otx_ep_common.h @@ -81,6 +81,13 @@ "%s():%u " fmt "\n", \ __func__, __LINE__, ##args) +#define otx_ep_log_dp(level, fmt, args...) \ + rte_log_dp(RTE_LOG_ ## level, otx_net_ep_logtype, \ + "%s():%u " fmt "\n", \ + __func__, __LINE__, ##args) + + + /* IO Access */ #define oct_ep_read64(addr) rte_read64_relaxed((void *)(addr)) #define oct_ep_write64(val, addr) rte_write64_relaxed((val), (void *)(addr)) diff --git a/drivers/net/octeon_ep/otx_ep_rxtx.c b/drivers/net/octeon_ep/otx_ep_rxtx.c index c421ef0a1c04..fe8885be54ff 100644 --- a/drivers/net/octeon_ep/otx_ep_rxtx.c +++ b/drivers/net/octeon_ep/otx_ep_rxtx.c @@ -884,9 +884,8 @@ otx_ep_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts) next_fetch = (pkts == new_pkts - 1) ? 0 : 1; oq_pkt = otx_ep_droq_read_packet(otx_ep, droq, next_fetch); if (!oq_pkt) { - RTE_LOG_DP(ERR, PMD, - "DROQ read pkt failed pending %" PRIu64 - "last_pkt_count %" PRIu64 "new_pkts %d.\n", + otx_ep_log_dp(ERR, "DROQ read pkt failed pending %" PRIu64 + "last_pkt_count %" PRIu64 "new_pkts %d.", droq->pkts_pending, droq->last_pkt_count, new_pkts); droq->stats.rx_err++;