app/testpmd: fix device configure with zero queue
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 10 May 2018 02:22:02 +0000 (10:22 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:52 +0000 (22:31 +0100)
commit2f203d44bab2637123f47d851fef2494ca016c6a
treee7870a55f42699fdf9d0ea7b1db51f0eea946102
parent7d6bf6b866b8c25ec06539b3eeed1db4f785577c
app/testpmd: fix device configure with zero queue

Setup number of Rx & Tx queues to 0 at rte_eth_dev_configure means
take driver's default queue number, so if during a re-configuration
previous queue number will be overwrite, this is not expected when
we configure dcb. The patch fix it by re-configure device with the
original queue number.

Fixes: 3be82f5cc5e ("ethdev: support PMD-tuned Tx/Rx parameters")

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Remy Horton <remy.horton@intel.com>
app/test-pmd/testpmd.c