From: Vidya Sagar Velumuri <vvelum...@marvell.com> Fix the buffer refill for SDP output queue Fixes: ab09499e809c ("net/octeon_ep: add SSE Rx")
Signed-off-by: Vidya Sagar Velumuri <vvelum...@marvell.com> Acked-by: Vamsi Krishna Attunuru <vattun...@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