Skip to contentSkip to conversation

common/idpf: fix Rx queue configuration

PATCH Applied [email protected] 3 participants 3 messages Feb 23, 2023 – Feb 24, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 common/idpf: fix Rx queue configuration

From: Beilei Xing <[email protected]>

IDPF PMD enables 2 buffer queues by default. According to the data sheet, if there is a second buffer queue, the second buffer queue is valid only if bugq2_ena is set.

Fixes c2494d783d31 ("net/idpf: support queue start")
Fixes 8b95ced47a13 ("common/idpf: add Rx/Tx queue structs")
---
 drivers/common/idpf/idpf_common_virtchnl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/common/idpf/idpf_common_virtchnl.c +1 -0
index 99d9efbb7c..9ee7259539 100644
@@ -987,6 +987,7 @@ idpf_vc_rxq_config(struct idpf_vport *vport, struct idpf_rx_queue *rxq)
 
 		rxq_info->ring_len = rxq->nb_rx_desc;
 		rxq_info->rx_bufq1_id = rxq->bufq1->queue_id;
+		rxq_info->bufq2_ena = 1;
 		rxq_info->rx_bufq2_id = rxq->bufq2->queue_id;
 		rxq_info->rx_buffer_low_watermark = 64;
 
Signature · 1 line
2.26.2
Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines

-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Thursday, February 23, 2023 11:17 AM
To: Wu, Jingjing <[email protected]>
Cc: [email protected]; Xing, Beilei <[email protected]>; [email protected]
Subject: [PATCH] common/idpf: fix Rx queue configuration

From: Beilei Xing <[email protected]>

IDPF PMD enables 2 buffer queues by default. According to the data sheet, if there is a second buffer queue, the second buffer queue is valid only if bugq2_ena is set.

Quoted 5 lines
Fixes c2494d783d31 ("net/idpf: support queue start")
Fixes 8b95ced47a13 ("common/idpf: add Rx/Tx queue structs")
Applied
#2 lore raw
Quoted 25 lines

-----Original Message-----
From: Wu, Jingjing <[email protected]>
Sent: Thursday, February 23, 2023 12:24 PM
To: Xing, Beilei <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [PATCH] common/idpf: fix Rx queue configuration

Quoted 14 lines

-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Thursday, February 23, 2023 11:17 AM
To: Wu, Jingjing <[email protected]>
Cc: [email protected]; Xing, Beilei <[email protected]>; [email protected]
Subject: [PATCH] common/idpf: fix Rx queue configuration

From: Beilei Xing <[email protected]>

IDPF PMD enables 2 buffer queues by default. According to the data sheet, if there is a second buffer queue, the second buffer queue is valid only if bugq2_ena is set.

Quoted 6 lines
Quoted 5 lines
Fixes c2494d783d31 ("net/idpf: support queue start")
Fixes 8b95ced47a13 ("common/idpf: add Rx/Tx queue structs")

Applied to dpdk-next-net-intel.

Thanks
Qi