From: Ajit Khaparde <ajit.khaparde@broadcom.com>
To: dev@dpdk.org
Subject: [PATCH v2 11/13] net/bnxt: remove some unnecessary logs
Date: Sun, 27 Oct 2024 10:11:26 -0700 [thread overview]
Message-ID: <20241027171128.50221-12-ajit.khaparde@broadcom.com> (raw)
In-Reply-To: <20241027171128.50221-1-ajit.khaparde@broadcom.com>
Remove some unnecessary logs messages when buffer allocation fails.
We already have stats to indicate such failures.
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
drivers/net/bnxt/bnxt_rxr.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c
index dc0bf6032b..b8637ff57c 100644
--- a/drivers/net/bnxt/bnxt_rxr.c
+++ b/drivers/net/bnxt/bnxt_rxr.c
@@ -316,11 +316,8 @@ static int bnxt_prod_ag_mbuf(struct bnxt_rx_queue *rxq)
/* TODO batch allocation for better performance */
while (rte_bitmap_get(rxr->ag_bitmap, bmap_next)) {
- if (unlikely(bnxt_alloc_ag_data(rxq, rxr, raw_next))) {
- PMD_DRV_LOG_LINE(ERR, "agg mbuf alloc failed: prod=0x%x",
- raw_next);
+ if (unlikely(bnxt_alloc_ag_data(rxq, rxr, raw_next)))
break;
- }
rte_bitmap_clear(rxr->ag_bitmap, bmap_next);
rxr->ag_raw_prod = raw_next;
raw_next = RING_NEXT(raw_next);
@@ -1092,8 +1089,6 @@ static int bnxt_crx_pkt(struct rte_mbuf **rx_pkt,
bnxt_set_vlan_crx(rxcmp, mbuf);
if (bnxt_alloc_rx_data(rxq, rxr, raw_prod)) {
- PMD_DRV_LOG_LINE(ERR, "mbuf alloc failed with prod=0x%x",
- raw_prod);
rc = -ENOMEM;
goto rx;
}
@@ -1271,8 +1266,6 @@ static int bnxt_rx_pkt(struct rte_mbuf **rx_pkt,
*/
raw_prod = RING_NEXT(raw_prod);
if (bnxt_alloc_rx_data(rxq, rxr, raw_prod)) {
- PMD_DRV_LOG_LINE(ERR, "mbuf alloc failed with prod=0x%x",
- raw_prod);
rc = -ENOMEM;
goto rx;
}
--
2.39.5 (Apple Git-154)
next prev parent reply other threads:[~2024-10-27 17:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-27 17:11 [PATCH v2 00/13] patchset for bnxt PMD Ajit Khaparde
2024-10-27 17:11 ` [PATCH v2 01/13] net/bnxt: fix TCP and UDP checksum flags Ajit Khaparde
2024-10-27 17:11 ` [PATCH v2 02/13] net/bnxt: fix bad action offset in Tx bd Ajit Khaparde
2024-10-27 17:11 ` [PATCH v2 03/13] net/bnxt: add check to validate TSO segment size Ajit Khaparde
2024-10-27 17:11 ` [PATCH v2 04/13] net/bnxt: add check for number of segs Ajit Khaparde
2024-10-27 17:11 ` [PATCH v2 05/13] net/bnxt: add check for invalid mbuf passed by application Ajit Khaparde
2024-10-27 17:11 ` [PATCH v2 06/13] net/bnxt: free and account a bad Tx mbuf Ajit Khaparde
2024-10-27 17:11 ` [PATCH v2 07/13] net/bnxt: register for and handle RSS change event Ajit Khaparde
2024-10-27 17:11 ` [PATCH v2 08/13] net/bnxt: fix LRO offload capability Ajit Khaparde
2024-10-27 17:11 ` [PATCH v2 09/13] net/bnxt: disable VLAN filter when TF is enabled Ajit Khaparde
2024-10-27 17:11 ` [PATCH v2 10/13] net/bnxt: remove the VNIC async event handler Ajit Khaparde
2024-10-27 17:11 ` Ajit Khaparde [this message]
2024-10-27 17:11 ` [PATCH v2 12/13] net/bnxt: add support for buffer split Rx offload Ajit Khaparde
2024-10-27 17:11 ` [PATCH v2 13/13] net/bnxt: remove unnecessary ifdef Ajit Khaparde
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=20241027171128.50221-12-ajit.khaparde@broadcom.com \
--to=ajit.khaparde@broadcom.com \
--cc=dev@dpdk.org \
/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).