Skip to contentSkip to conversation

net/octeon_ep: fix buffer refill failure

PATCH In review Vamsi Krishna 2 participants 2 messages Mar 24, 2025 – Mar 26, 2025 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/octeon_ep: fix buffer refill failure

From: Vidya Sagar Velumuri <[email protected]>

Fix the buffer refill for SDP output queue

Fixes ab09499e809c ("net/octeon_ep: add SSE Rx")
---
 drivers/net/octeon_ep/cnxk_ep_rx.h | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/net/octeon_ep/cnxk_ep_rx.h +3 -4
index 83677e1c6f..5db32c4448 100644
@@ -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
Signature · 1 line
2.34.1
Acked-by Vamsi Attunuru on v0 1/1
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Vamsi Krishna <[email protected]>
Sent: Monday, March 24, 2025 4:39 PM
To: [email protected]
Cc: Jerin Jacob <[email protected]>; Vamsi Krishna Attunuru <[email protected]>; Vidya Sagar Velumuri <[email protected]>
Subject: [PATCH v0 1/1] net/octeon_ep: fix buffer refill failure

Quoted 7 lines

From: Vidya Sagar Velumuri <[email protected]>

Fix the buffer refill for SDP output queue

Fixes ab09499e809c ("net/octeon_ep: add SSE Rx")

Updated the git commit as follows and applied to dpdk-next-net-mrvl/for-main. Thanks

commit 5b1a795452a09eb6a0b0a4d8eccd113c1c53f131 (HEAD -> for-main)

Author: Vidya Sagar Velumuri <[email protected]>
Date:   Mon Mar 24 16:38:50 2025 +0530

net/octeon_ep: fix buffer refill

Fix the buffer refill for SDP output queue

Fixes ab09499e809c ("net/octeon_ep: add SSE Rx")
Quoted 26 lines
---
 drivers/net/octeon_ep/cnxk_ep_rx.h | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/net/octeon_ep/cnxk_ep_rx.h +3 -5
index 83677e1c6f..5db32c4448 100644
@@ -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