app/testpmd: fix log of start command
authorBernard Iremonger <bernard.iremonger@intel.com>
Tue, 22 May 2018 15:10:38 +0000 (16:10 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 22 May 2018 22:35:01 +0000 (00:35 +0200)
commitb5205060e6acf1eff14d4d37c6fc15e62b7e3791
tree6375ab299a57566a41dee6c05d37beaead6560de
parent8f6d9e13a98cc9f61408c0258f9d67129fe5f01f
app/testpmd: fix log of start command

Application can provide 0 for ring size to use default values. To not
log zero for that case get configured ring size from device.

Call the rte_eth_rxq_info_get() and rte_eth_txq_info_get() functions
to update the number of rx and tx descriptors.

Fixes: d44f8a485f5d ("app/testpmd: enable per queue configure")

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/config.c