All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] app/testpmd: fix mapping of user priority to DCB TC
@ 2017-10-23  7:25 Wei Dai
  2017-10-24  2:48 ` Wu, Jingjing
  0 siblings, 1 reply; 3+ messages in thread
From: Wei Dai @ 2017-10-23  7:25 UTC (permalink / raw)
  To: jingjing.wu; +Cc: dev, Wei Dai, stable

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")
Cc: stable@dpdk.org

Signed-off-by: Wei Dai <wei.dai@intel.com>
---
 app/test-pmd/testpmd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index a4d4a86..3a75d6f 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -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 */
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] app/testpmd: fix mapping of user priority to DCB TC
  2017-10-23  7:25 [PATCH] app/testpmd: fix mapping of user priority to DCB TC Wei Dai
@ 2017-10-24  2:48 ` Wu, Jingjing
  2017-10-24 17:50   ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Wu, Jingjing @ 2017-10-24  2:48 UTC (permalink / raw)
  To: Dai, Wei; +Cc: dev, stable



> -----Original Message-----
> From: Dai, Wei
> Sent: Monday, October 23, 2017 3:25 PM
> To: Wu, Jingjing <jingjing.wu@intel.com>
> Cc: dev@dpdk.org; Dai, Wei <wei.dai@intel.com>; stable@dpdk.org
> Subject: [PATCH] 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")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Wei Dai <wei.dai@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] app/testpmd: fix mapping of user priority to DCB TC
  2017-10-24  2:48 ` Wu, Jingjing
@ 2017-10-24 17:50   ` Ferruh Yigit
  0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2017-10-24 17:50 UTC (permalink / raw)
  To: Wu, Jingjing, Dai, Wei; +Cc: dev, stable

On 10/23/2017 7:48 PM, Wu, Jingjing wrote:
> 
> 
>> -----Original Message-----
>> From: Dai, Wei
>> Sent: Monday, October 23, 2017 3:25 PM
>> To: Wu, Jingjing <jingjing.wu@intel.com>
>> Cc: dev@dpdk.org; Dai, Wei <wei.dai@intel.com>; stable@dpdk.org
>> Subject: [PATCH] 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")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Wei Dai <wei.dai@intel.com>
> Acked-by: Jingjing Wu <jingjing.wu@intel.com>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-24 17:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-23  7:25 [PATCH] app/testpmd: fix mapping of user priority to DCB TC Wei Dai
2017-10-24  2:48 ` Wu, Jingjing
2017-10-24 17:50   ` Ferruh Yigit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.