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 88907436D8; Wed, 13 Dec 2023 02:46:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 80BEE42E7A; Wed, 13 Dec 2023 02:46:55 +0100 (CET) Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) by mails.dpdk.org (Postfix) with ESMTP id 0FD54402B8 for ; Wed, 13 Dec 2023 02:46:53 +0100 (CET) Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-6d9d209c9bbso5090140a34.0 for ; Tue, 12 Dec 2023 17:46:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702432012; x=1703036812; 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=z4JpoV8WaDE1q08Eybx7ocTbrDbhgxOcB3kMdiNzEhXUXvc3npOlh+z92q3hHTUjLr dp7yGGk9QsFrTgDpLjIC6PwDrUvqcsgTZ3RPYy1nzD2BC1DUOyf4BS0wOd9YeGcmYB0E TpI02TnhLqODRL2HQiaf7gVscUyMk6NiCBDoTNydjlnk2O68RuC2kMZgLWR6g96l6ts8 dQFGS/qfGVPdJkne6LDPx9CA1T47gBNlpFri9ZRa0CdTp/JIjuB9WNm0Vl3dMwwOU6ff QXU6Y6bTHrno45X1cA49JoG+VW4cKIZVSp/XCr/SC33mMqIFHCb6ltlvTt76YzOEsbZ1 4k6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702432012; x=1703036812; 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=IKpj8qv99k2281d8XbHrGsW8YfvI2buB50dMCwYohdHMdB8u1Gpye3xfd1+XCp+z4T vOe4IbyXv7WI3sbCLf3EisspU4M5Nxo+ONPBq6mEs6kWX7nX/Z4v+73ZuVFwJ7pE3XGx tVqzBQJ79Qqp0nAYnpRviyPbxWL72fbmFXeHcTJh4kJO7TiTzWtzKhgPUsW+2GkgEtAh KeLupBPXVOLkTMX/Yrxp13omQwulXOxQTlKjQmV1iG237RDBP3W2L7p30XUjEPJjuyMU LCE62qkUSZdl2UoBQ+u+GwEEyLc3CViDcFdVLJUPCv36IAMrfc8XhIvBgjL9+nG6+Rto pjlA== X-Gm-Message-State: AOJu0YwPegmeem6YDnoEXkGHVRivBa1bD2Rk5tWNo0BusQPqdKGmbMdb SoivIl+dlSUY6mKA+enyP7j7aWESVEYDlJG1SkQG6Q== X-Google-Smtp-Source: AGHT+IHijtQv3A4sD5AMlLI+PecwJl1qng+b0QMmt9a62E2hDdxYKfRUQTk4mwGYecZSOMGXB3nPhQ== X-Received: by 2002:a05:6830:2086:b0:6d9:d8b1:dc4a with SMTP id y6-20020a056830208600b006d9d8b1dc4amr7864152otq.5.1702432012504; Tue, 12 Dec 2023 17:46:52 -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.46.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 17:46:52 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Vamsi Attunuru Subject: [PATCH 13/26] net/octeon_ep: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 17:42:29 -0800 Message-ID: <20231213014408.612051-14-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/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++; -- 2.42.0