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 688EE436D9; Wed, 13 Dec 2023 05:20:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3491442ECA; Wed, 13 Dec 2023 05:19:30 +0100 (CET) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id 0407642EA9 for ; Wed, 13 Dec 2023 05:19:27 +0100 (CET) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6ce9c8c45a7so4148696b3a.0 for ; Tue, 12 Dec 2023 20:19:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702441166; x=1703045966; 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=sbjyOw/FrgLHBjyq/9VcYC3I//TDQdNAGWDObQOtEvA=; b=Tme5DMcbURcnss7xiidWngkXDC8S4ML3vfN6GrjzmCoKflADnDAikTV4Ye5J2kFE7U aNAAEigkdiTEru9hznLjb5hI1ID/9XyR7WqMVY5FyUW0iAyAuw5F49SVi1/WN+UWLGsB W5N1NJZqBW9bAsXhUj7aI01FjSq1OHdjZNGe4HUSWxc3bgOlyWtHZOZoOxla0oMS7RDc 3O5vYnmtt+OPCjEEwdZMdktbG0xSAD3FkyxglQKbc6Ty4FU0+9v1HRuftAStS/P68jNw XA5DlbZ6ySGTF7xE4ROWSQ0KLLogWSsnKi2fwn/fUHd1tXxPfI5kzs3fjBUsVO7bptaB FxFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702441166; x=1703045966; 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=sbjyOw/FrgLHBjyq/9VcYC3I//TDQdNAGWDObQOtEvA=; b=dRKkrdU/DCdg+hDyoJ2k+Hww3QaTvQDdDECQixBxGsa1H70zi6iCWZ0ootNfaK/UXv +T6v07ZFGixnqEKLzAsFoS+WGoLtV6KtzVk8ZJx0yQGdEarcMUdx5qJfoW8ZKALb+hx+ 4k2vTu42wWLv0SSSWwXh7PywuVgh4kN+/VKbGN4Nj0AJ8w577PqjapXpgvwH1WQg64hG iaKbDG7BVQqt8vDi521fGTzPeBse0zMO5s425gL5GCpabRlTh8ZnwajlxJjYQbwMV7BO sQ/ot16r4LkdVPQ4AiKatYJuSFS0RQZUWZ/I8M2ZJ7qXNf8Silnj9kBZ9zrAonq5hpJy zC1w== X-Gm-Message-State: AOJu0Yw0W02D/Lp4jhxIJmMUOqA8/dhBZ5DCAyyG3fa7QDDnjmJoykBx YeJ/b59GOAIWKRqn0GhSOxqYqLs9NpynP1+7DHU= X-Google-Smtp-Source: AGHT+IER8YlL7OX/YwOpjC8hwUJur/O7+DdEf/j3S0u+K+tJuQ6QeIs8Sl99kaVSp0yOi+mQHJbQ3w== X-Received: by 2002:a05:6a20:d413:b0:18f:97c:4f52 with SMTP id il19-20020a056a20d41300b0018f097c4f52mr3572579pzb.94.1702441166205; Tue, 12 Dec 2023 20:19:26 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:19:25 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Somnath Kotur , Ajit Khaparde , Ruifeng Wang , Bruce Richardson , Konstantin Ananyev Subject: [PATCH v2 05/25] net/bnxt: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 20:16:32 -0800 Message-ID: <20231213041920.729403-6-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 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.42.0