Skip to content

Commit 591ee7f

Browse files
fengchengwenshemminger
authored andcommitted
app/testpmd: fix wrong Rx queues when setup DCB forward
The nb_rx_queue should get from rxp_dcb_info not txp_dcb_info, this commit fix it. Fixes: 1a57249 ("app/testpmd: setup DCB forwarding based on traffic class") Cc: [email protected] Signed-off-by: Chengwen Feng <[email protected]>
1 parent 63a8528 commit 591ee7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/test-pmd/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5205,7 +5205,7 @@ dcb_fwd_config_setup(void)
52055205
fwd_lcores[lc_id]->stream_idx;
52065206
rxq = rxp_dcb_info.tc_queue.tc_rxq[i][tc].base;
52075207
txq = txp_dcb_info.tc_queue.tc_txq[i][tc].base;
5208-
nb_rx_queue = txp_dcb_info.tc_queue.tc_rxq[i][tc].nb_queue;
5208+
nb_rx_queue = rxp_dcb_info.tc_queue.tc_rxq[i][tc].nb_queue;
52095209
nb_tx_queue = txp_dcb_info.tc_queue.tc_txq[i][tc].nb_queue;
52105210
for (j = 0; j < nb_rx_queue; j++) {
52115211
struct fwd_stream *fs;

0 commit comments

Comments
 (0)