[PATCH v0 1/1] net/octeon_ep: fix buffer refill failure
Vamsi Krishna
vattunuru at marvell.com
Mon Mar 24 12:08:50 CET 2025
From: Vidya Sagar Velumuri <vvelumuri at 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 at marvell.com>
Acked-by: Vamsi Krishna Attunuru <vattunuru at 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
More information about the dev
mailing list