app/testpmd: fix mapping of user priority to DCB TC
authorWei Dai <wei.dai@intel.com>
Mon, 23 Oct 2017 07:25:16 +0000 (15:25 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commitf59908fe499bc0e908295bf8ef874048f55186cd
treed2b332e528a7cb4cb6a092ef78b571d9140d7696
parent9be9050134aaf09089f0cfb7723159eecc4a15e5
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>
app/test-pmd/testpmd.c