app/testpmd: fix DCB configuration
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Mon, 26 Sep 2016 01:11:11 +0000 (09:11 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 13 Oct 2016 15:16:13 +0000 (17:16 +0200)
commit2a977b891f994d0e216812275af2156fb8566944
tree5065ee10655a3deda7299bbdc1d1869369877464
parent0f6f219e7919c988675f4695485334530af0a6ca
app/testpmd: fix DCB configuration

An issue is found that DCB cannot be configured on ixgbe
NICs. It's said the TX queue number is not right.
On ixgbe the max TX queue number is not fixed, it depends
on the multi-queue mode.

This patch adds the device configuration before getting
info in the DCB configuration process. So the right info
can be got depending on the configuration.

Fixes: 1a572499 ("app/testpmd: setup DCB forwarding based on traffic class")

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/testpmd.c