Skip to contentSkip to conversation

app/testpmd: fix mapping of user priority to DCB TC

PATCH Applied Wei Dai 3 participants 3 messages Oct 23, 2017 – Oct 24, 2017

lore
Share & tools
lore

Wei Dai

author
#0 lore raw

PATCH 1/1 app/testpmd: fix mapping of user priority to DCB TC

When number of DCB traffic class is 4, user priority should be mapped to traffic class 0/1/2/3.

Fixes cb60ede6e3b6 ("ethdev: rename DCB field in config structs")
---
 app/test-pmd/testpmd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
app/test-pmd/testpmd.c +2 -2
index a4d4a86..3a75d6f 100644
@@ -2193,8 +2193,8 @@ get_eth_dcb_conf(struct rte_eth_conf *eth_conf,
 				1 << (i % vmdq_rx_conf->nb_queue_pools);
 		}
 		for (i = 0; i < ETH_DCB_NUM_USER_PRIORITIES; i++) {
-			vmdq_rx_conf->dcb_tc[i] = i;
-			vmdq_tx_conf->dcb_tc[i] = i;
+			vmdq_rx_conf->dcb_tc[i] = i % num_tcs;
+			vmdq_tx_conf->dcb_tc[i] = i % num_tcs;
 		}
 
 		/* set DCB mode of RX and TX of multiple queues */
Signature · 1 line
2.5.5
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines

-----Original Message-----
From: Dai, Wei
Sent: Monday, October 23, 2017 3:25 PM
To: Wu, Jingjing <[email protected]>
Cc: [email protected]; Dai, Wei <[email protected]>; [email protected]
Subject: [PATCH] app/testpmd: fix mapping of user priority to DCB TC

Quoted 7 lines

When number of DCB traffic class is 4, user priority should be mapped to traffic class 0/1/2/3.

Fixes cb60ede6e3b6 ("ethdev: rename DCB field in config structs")
Applied
#2 lore raw
Quoted 9 lines · Jingjing
Quoted 9 lines

-----Original Message-----
From: Dai, Wei
Sent: Monday, October 23, 2017 3:25 PM
To: Wu, Jingjing <[email protected]>
Cc: [email protected]; Dai, Wei <[email protected]>; [email protected]
Subject: [PATCH] app/testpmd: fix mapping of user priority to DCB TC

Quoted 8 lines
Quoted 7 lines

When number of DCB traffic class is 4, user priority should be mapped to traffic class 0/1/2/3.

Fixes cb60ede6e3b6 ("ethdev: rename DCB field in config structs")

Applied to dpdk-next-net/master, thanks.