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 5B8F6436E3; Wed, 13 Dec 2023 17:39:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 347B042EFF; Wed, 13 Dec 2023 17:38:39 +0100 (CET) Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) by mails.dpdk.org (Postfix) with ESMTP id 63CD640E7C for ; Wed, 13 Dec 2023 17:38:37 +0100 (CET) Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-5c664652339so4023707a12.1 for ; Wed, 13 Dec 2023 08:38:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485516; x=1703090316; 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=yYBnLMQSIKwMPIS9f0brTmRTm8/hcJUIZ3wWUMpYIR8=; b=1HuSSx2lWFVVE3kgHxcho8VUVUBWz97aYNt168sjeQn7/ntFv4tWp9aersouJ6/oML kThPejNVVbl4tuDfNX1J8LZfPuEYtLeTUiaQ2y8k8xLlI7uGfEUg9muDdDS6qWXfsdca cdze3RC5vB9XA2NA+QcX7DeLfXzGSPUTftEbqQ5Uq704o86TWoGAqd1Nwz5G4yinY1Iw ZhBs79+PEALS2oCHS1QgmOM22akRknbmjPVBDIqK74vVee48wIuMFISbbpTP91gPFtbj 4uJMzrCY0Xh8DvEngUcXOrxur2YEf8zWUj7J5RBj08emrSxZCgfnrDK4ZFA/PXTKhx97 KRbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485516; x=1703090316; 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=yYBnLMQSIKwMPIS9f0brTmRTm8/hcJUIZ3wWUMpYIR8=; b=UKMoTkjPYCXdCXEOYVOfv9xqumAs9c70ZVvcb1Gzj3pIma28sORS5vSiFoSo9eK37c 6MbSznB1XIUEkRBeUFtJubdE2yQrHWwGSV4s3FltGmSZmPHbEya/kr2p60/yx4H7zfeX W1k8YMLtCAndl3m7LmLvLshvSAARI6c9DnpusM9YD1jATRWIwzASAElS+iAkDOz6VUE0 P/xDrfpcn1D6EWZ8uXMACGizhwgOaH4nQkrvaZDroKbBuEVxdlWMT1xzOAhp3ikVhvN9 bc8oaucCoH/L3jYjfSukieeIPJAMXtTczv/HcmMOwJ3PXhrU5MWotgxV0g0AnQR5JQAY zyvg== X-Gm-Message-State: AOJu0Yx8ZrUK30M0c64rn6Z6lVLP8BvlWe5QbQ/dw7nUQ/GgZBoEHlML cpGDwhmMf2XXf48jfDYkzRJG6PeA705xRPI9dOc= X-Google-Smtp-Source: AGHT+IEBPb/xsSvySjAGcv1XrWZxl+TkH+WpCgrlpG34uanoESaZDlGxBFGy6pKC0YgRl7YboPszaA== X-Received: by 2002:a17:903:264b:b0:1d0:a9fa:592d with SMTP id je11-20020a170903264b00b001d0a9fa592dmr4125397plb.118.1702485516591; Wed, 13 Dec 2023 08:38:36 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:38:36 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Somnath Kotur , Ajit Khaparde , Ruifeng Wang , Bruce Richardson , Konstantin Ananyev Subject: [PATCH v3 05/37] net/bnxt: replace RTE_LOG_DP with rte_log_dp Date: Wed, 13 Dec 2023 08:35:39 -0800 Message-ID: <20231213163820.894987-6-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 Acked-by: Somnath Kotur --- drivers/net/bnxt/bnxt.h | 5 +++++ drivers/net/bnxt/bnxt_rxtx_vec_neon.c | 3 +-- drivers/net/bnxt/bnxt_rxtx_vec_sse.c | 3 +-- drivers/net/bnxt/bnxt_txr.c | 4 +--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/net/bnxt/bnxt.h b/drivers/net/bnxt/bnxt.h index 0e01b1d4baea..3aa9213a12f9 100644 --- a/drivers/net/bnxt/bnxt.h +++ b/drivers/net/bnxt/bnxt.h @@ -1058,6 +1058,11 @@ extern int bnxt_logtype_driver; #define PMD_DRV_LOG(level, fmt, args...) \ PMD_DRV_LOG_RAW(level, fmt, ## args) +#define PMD_DRV_LOG_DP(level, fmt, args...) \ + rte_log_dp(RTE_LOG_ ## level, bnxt_logtype_driver, \ + fmt, ## args) + + extern const struct rte_flow_ops bnxt_ulp_rte_flow_ops; int32_t bnxt_ulp_port_init(struct bnxt *bp); void bnxt_ulp_port_deinit(struct bnxt *bp); diff --git a/drivers/net/bnxt/bnxt_rxtx_vec_neon.c b/drivers/net/bnxt/bnxt_rxtx_vec_neon.c index aa1b1ab8bb7e..64c1dfac47d9 100644 --- a/drivers/net/bnxt/bnxt_rxtx_vec_neon.c +++ b/drivers/net/bnxt/bnxt_rxtx_vec_neon.c @@ -357,8 +357,7 @@ bnxt_handle_tx_cp_vec(struct bnxt_tx_queue *txq) if (likely(CMP_TYPE(txcmp) == TX_CMPL_TYPE_TX_L2)) nb_tx_pkts += txcmp->opaque; else - RTE_LOG_DP(ERR, PMD, - "Unhandled CMP type %02x\n", + PMD_DRV_LOG_DP(ERR, "Unhandled CMP type %02x\n", CMP_TYPE(txcmp)); raw_cons = NEXT_RAW_CMP(raw_cons); } while (nb_tx_pkts < ring_mask); diff --git a/drivers/net/bnxt/bnxt_rxtx_vec_sse.c b/drivers/net/bnxt/bnxt_rxtx_vec_sse.c index e99a547f5857..572b21a00837 100644 --- a/drivers/net/bnxt/bnxt_rxtx_vec_sse.c +++ b/drivers/net/bnxt/bnxt_rxtx_vec_sse.c @@ -326,8 +326,7 @@ bnxt_handle_tx_cp_vec(struct bnxt_tx_queue *txq) if (likely(CMP_TYPE(txcmp) == TX_CMPL_TYPE_TX_L2)) nb_tx_pkts += txcmp->opaque; else - RTE_LOG_DP(ERR, PMD, - "Unhandled CMP type %02x\n", + PMD_DRV_LOG_DP(ERR, "Unhandled CMP type %02x\n", CMP_TYPE(txcmp)); raw_cons = NEXT_RAW_CMP(raw_cons); } while (nb_tx_pkts < ring_mask); diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c index 899986764f93..bd0a75653ab3 100644 --- a/drivers/net/bnxt/bnxt_txr.c +++ b/drivers/net/bnxt/bnxt_txr.c @@ -542,9 +542,7 @@ static int bnxt_handle_tx_cp(struct bnxt_tx_queue *txq) if (CMP_TYPE(txcmp) == TX_CMPL_TYPE_TX_L2) nb_tx_pkts += opaque; else - RTE_LOG_DP(ERR, PMD, - "Unhandled CMP type %02x\n", - CMP_TYPE(txcmp)); + PMD_DRV_LOG_DP(ERR, "Unhandled CMP type %02x\n", CMP_TYPE(txcmp)); raw_cons = NEXT_RAW_CMP(raw_cons); } while (nb_tx_pkts < ring_mask); -- 2.43.0