net/octeon_ep: fix buffer refill failure
PATCH 1/1 net/octeon_ep: fix buffer refill failure
From: Vidya Sagar Velumuri <[email protected]>
Fix the buffer refill for SDP output queue
--- 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
@@ -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
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")Signed-off-by Vidya Sagar Velumuri <[email protected]>
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
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@@ -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