From: Vamsi Krishna <vattunuru@marvell.com>
To: <dev@dpdk.org>
Cc: <jerinj@marvell.com>, <vattunuru@marvell.com>, <vvelumuri@marvell.com>
Subject: [PATCH v0 1/1] net/octeon_ep: fix buffer refill failure
Date: Mon, 24 Mar 2025 16:38:50 +0530 [thread overview]
Message-ID: <20250324110850.92072-1-vattunuru@marvell.com> (raw)
From: Vidya Sagar Velumuri <vvelumuri@marvell.com>
Fix the buffer refill for SDP output queue
Fixes: ab09499e809c ("net/octeon_ep: add SSE Rx")
Signed-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>
Acked-by: Vamsi Krishna Attunuru <vattunuru@marvell.com>
---
drivers/net/octeon_ep/cnxk_ep_rx.h | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/net/octeon_ep/cnxk_ep_rx.h b/drivers/net/octeon_ep/cnxk_ep_rx.h
index 83677e1c6f..5db32c4448 100644
--- a/drivers/net/octeon_ep/cnxk_ep_rx.h
+++ b/drivers/net/octeon_ep/cnxk_ep_rx.h
@@ -72,11 +72,10 @@ cnxk_ep_rx_refill(struct otx_ep_droq *droq)
desc_refilled = count;
count = droq->read_idx;
rc = cnxk_ep_rx_refill_mbuf(droq, count);
- if (unlikely(rc)) {
+ if (unlikely(rc))
droq->stats.rx_alloc_failure++;
- return;
- }
- desc_refilled += count;
+ else
+ desc_refilled += count;
}
/* Flush the droq descriptor data to memory to be sure
--
2.34.1
next reply other threads:[~2025-03-24 11:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-24 11:08 Vamsi Krishna [this message]
2025-03-26 8:30 ` Jerin Jacob
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=20250324110850.92072-1-vattunuru@marvell.com \
--to=vattunuru@marvell.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=vvelumuri@marvell.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).