From patchwork Wed Dec 13 16:35:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 135147 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 1B50B436E3; Wed, 13 Dec 2023 17:40:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 46A4C40E25; Wed, 13 Dec 2023 17:40:08 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 9B67C4025E for ; Wed, 13 Dec 2023 17:40:06 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1d0b2752dc6so63275435ad.3 for ; Wed, 13 Dec 2023 08:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485606; x=1703090406; 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=ftBcpZJRVGhRB4SHFaON+c7hHKmPr6GTRlDBEQ4iANE=; b=IrKXd4gQox/ZDHNyS3NQ1BZ+RnLtMj/obdzYUMHA6IbOUMsK3/DtCHSM8c8BPe6dQ5 BWMUiZlAua24B66kK6H/5JMjjbnrA32cU7X46LE4x+0AdJbqXePTwKhgbRZ30wL8m6CX SBLV4B57o12PR7UGJaATnL97Orbt/ZErmKq4q9NJqw34xAtN1u9ru+v+IMCnf9Bn0dGs dbbYHxNoPtQ5FLSd56jbzEwqwvHbA27RqzwXS8MJBAvwWqXzYixS9vFVEmh3Wz1JeBs1 K7PSmHNmZtBV/FptRWXkeIm8nRIiOHei233qj1DAQgnjvUhYhXAPuqB8TtJDjjvgnKjN fWXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485606; x=1703090406; 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=ftBcpZJRVGhRB4SHFaON+c7hHKmPr6GTRlDBEQ4iANE=; b=gqCTz4rN7l/zBMQRhenGTkB1Q6a9ZRyQ2H3FUAOxdOZFN+c5xgqzq82gdxi7BIP3Li P/KfBYcXy2xwlSAhdb1wd1mUlSJ1PzYUlVlaqt8EYuQdlQcLfrO4ZfEG2lnPheoGgFJE DMBx8y8mzUk1wqp9ISTcOZRiirNVLDgTtjDsRktT8jbSDr+iEbYKc/2FCcT8I/ot369+ NlVNh9y5H8dX4vn9jcx8LdP1M7mueiPED3by2JcmtEwlZ21j/nCNojkwylcHyACBKjG7 ybH/vydX2d1psab+Fjwl1Zma+A7iVDiLl720M0RonPUkRFwrGWQyoEICzb+5CTPntOoD sefw== X-Gm-Message-State: AOJu0YwDdHiNpq9k16br1sTvh9ktwsB/JeCxXi7PYesvPQGipwuUAjB6 /EQOItILlhPHMSlFbPG2B37fsFPymAgH99Atn68= X-Google-Smtp-Source: AGHT+IE/bDtNXufMqWbUYtnVEU68YIySU2LDZ14Jp0MzDyeSgqz1gD6M+dPHG9DeOLS5G4shoUYqfg== X-Received: by 2002:a17:903:24c:b0:1d0:6638:b9de with SMTP id j12-20020a170903024c00b001d06638b9demr9588677plh.10.1702485605887; Wed, 13 Dec 2023 08:40:05 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:40:05 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Vamsi Attunuru Subject: [PATCH v3 12/37] net/octeon_ep: replace RTE_LOG_DP with rte_log_dp Date: Wed, 13 Dec 2023 08:35:46 -0800 Message-ID: <20231213163820.894987-13-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 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++;