DPDK patches and discussions
 help / color / mirror / Atom feed
From: Chaoyong He <chaoyong.he@corigine.com>
To: dev@dpdk.org
Cc: oss-drivers@corigine.com, Zerun Fu <zerun.fu@corigine.com>,
	Chaoyong He <chaoyong.he@corigine.com>,
	Long Wu <long.wu@corigine.com>,
	Peng Zhang <peng.zhang@corigine.com>
Subject: [PATCH 1/6] net/nfp: modify the level of some logs
Date: Thu, 17 Oct 2024 14:15:42 +0800	[thread overview]
Message-ID: <20241017061547.4068520-2-chaoyong.he@corigine.com> (raw)
In-Reply-To: <20241017061547.4068520-1-chaoyong.he@corigine.com>

From: Zerun Fu <zerun.fu@corigine.com>

Now when the app starts it will enable some features,
but sometimes the firmware doesn't support them. Then
it will print some error messages.

Actually this doesn't affect the using of the app, so
change the level of log to avoid exposing the information
to users.

Signed-off-by: Zerun Fu <zerun.fu@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Long Wu <long.wu@corigine.com>
Reviewed-by: Peng Zhang <peng.zhang@corigine.com>
---
 drivers/net/nfp/nfp_net_common.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/nfp/nfp_net_common.c b/drivers/net/nfp/nfp_net_common.c
index f76d5a6895..de7140db0a 100644
--- a/drivers/net/nfp/nfp_net_common.c
+++ b/drivers/net/nfp/nfp_net_common.c
@@ -717,7 +717,7 @@ nfp_net_set_allmulticast_mode(struct rte_eth_dev *dev,
 
 	cap_extend = hw->cap_ext;
 	if ((cap_extend & NFP_NET_CFG_CTRL_MCAST_FILTER) == 0) {
-		PMD_DRV_LOG(ERR, "Allmulticast mode not supported");
+		PMD_DRV_LOG(DEBUG, "Allmulticast mode not supported");
 		return -ENOTSUP;
 	}
 
@@ -2814,7 +2814,7 @@ nfp_net_vf_queues_config(struct nfp_net_hw *net_hw,
 	ret = nfp_net_sriov_check(pf_dev, NFP_NET_VF_CFG_MB_CAP_QUEUE_CONFIG);
 	if (ret != 0) {
 		if (ret == -ENOTSUP) {
-			PMD_INIT_LOG(WARNING, "Set VF max queue not supported");
+			PMD_INIT_LOG(DEBUG, "Set VF max queue not supported");
 			return 0;
 		}
 
@@ -2844,7 +2844,7 @@ nfp_net_sriov_init(struct nfp_net_hw *net_hw,
 	ret = nfp_net_sriov_check(pf_dev, NFP_NET_VF_CFG_MB_CAP_SPLIT);
 	if (ret != 0) {
 		if (ret == -ENOTSUP) {
-			PMD_INIT_LOG(WARNING, "Set VF split not supported");
+			PMD_INIT_LOG(DEBUG, "Set VF split not supported");
 			return 0;
 		}
 
-- 
2.39.1


  reply	other threads:[~2024-10-17  6:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-17  6:15 [PATCH 0/6] Adjust format and level of log Chaoyong He
2024-10-17  6:15 ` Chaoyong He [this message]
2024-10-17  6:15 ` [PATCH 2/6] net/nfp: modify the level of speed update log Chaoyong He
2024-10-17  6:15 ` [PATCH 3/6] net/nfp: reformat the header of logs Chaoyong He
2024-10-17  6:15 ` [PATCH 4/6] net/nfp: reformat the abbreviations " Chaoyong He
2024-10-17  6:15 ` [PATCH 5/6] net/nfp: reformat the period " Chaoyong He
2024-10-17  6:15 ` [PATCH 6/6] net/nfp: correct of misspellings Chaoyong He

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241017061547.4068520-2-chaoyong.he@corigine.com \
    --to=chaoyong.he@corigine.com \
    --cc=dev@dpdk.org \
    --cc=long.wu@corigine.com \
    --cc=oss-drivers@corigine.com \
    --cc=peng.zhang@corigine.com \
    --cc=zerun.fu@corigine.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).