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 EE5AD436D8; Wed, 13 Dec 2023 02:44:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB8FF42E80; Wed, 13 Dec 2023 02:44:19 +0100 (CET) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id 4F16342E70 for ; Wed, 13 Dec 2023 02:44:16 +0100 (CET) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-6cda22140f2so5792500b3a.1 for ; Tue, 12 Dec 2023 17:44:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702431855; x=1703036655; 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=SNsb/Aztoa9U5eBPYz23JKhMQoU+NPJ5M7bWEfZMXjk=; b=pEPWdpU5c614pzRM0qtFenkX5nENUmLK2eiwAFg3Nv96FqVh6yHDGUmepLoxJQMXnK quET1kwI3z7TIC+idWdgTTCan40iASyJ8GqY8fMxOceMedlDNjZf4Wb06anngK5Ef2Yf JPtxRXPeDi1lxpisU/mTjG+JqclqROHCSJNnFIH3wNMbYfQiw76+lw733OgvvggeBqI9 mudNatkn/pt5zgYgYMsyz9mEtFpUcZUWl4P6vStnIGlRGHhyIadvYMxiYo2UHBPbTjO8 6gKcFT6uRtbYnoovUp3Pd9TE4B5s/DcwliCJDT6DA28mM9T9yUuaEiKO8lnfBMFNmJc8 7d+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702431855; x=1703036655; 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=SNsb/Aztoa9U5eBPYz23JKhMQoU+NPJ5M7bWEfZMXjk=; b=fHHMkNQ26sNsRzIWeueUWO7G68Y3b09lFH1Nec/05HvP/H42AUSsm7UE83H8SczlTC Fndd1etAbfmIoK8XJG0IUl89vU8UN1GT3kiy3F7dJuQE/CL5zuo+DY5Bj0UNe1ljyfaT 6I4VZoR3P5shF8v6W2GoUEMpFKmJHTyrja297YbHdNQjf295/RWkgHgVLqHGzKNw3z1q S3lI5WnLs+4Qs4kM+0a8281Hln489xQeMmguUi+SN76lxx0gtFjrqaHvNEpCFwP4m12/ ezSu58zoc5TJa/VxGTPhqJh0ZIPNTiRfZNhwOVjzncv/luJzqABNo044S8nDRptYjEBs 0upA== X-Gm-Message-State: AOJu0YxEgx33Zjw1og3Ww2IiZ1z6mpDPxIMsRj/44pgCVB+3L7GdI/2H mIrGy1dQ7FZ9XK9qZUNChQNsVN/50rVWxyMDHzuTAA== X-Google-Smtp-Source: AGHT+IEkZ9b1fJaaKx/HlZPwSqb9dqDVXCsEC8ciZ3CGEFGC15ehqfBb73k8B/38lpsVdHRFwsdkMA== X-Received: by 2002:a05:6a00:1254:b0:6ce:71ae:a26d with SMTP id u20-20020a056a00125400b006ce71aea26dmr8083420pfi.55.1702431855483; Tue, 12 Dec 2023 17:44:15 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 17:44:15 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Ajit Khaparde , Somnath Kotur , Ruifeng Wang , Bruce Richardson , Konstantin Ananyev Subject: [PATCH 05/26] net/bnxt: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 17:42:21 -0800 Message-ID: <20231213014408.612051-6-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/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.42.0