app/testpmd: fix log with no bound device
authorMichael Qiu <michael.qiu@intel.com>
Mon, 2 Mar 2015 08:31:37 +0000 (16:31 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 9 Mar 2015 11:46:46 +0000 (12:46 +0100)
commit92d2703e2c432cd9004d7eee261c85ec2f474df2
treed557835cbe23748edc2fa7719ee7d87b54b464a6
parentcff90bb7ecc39587cb980909f851cc34ebbeddf4
app/testpmd: fix log with no bound device

As hotplug has been enabled, start the testpmd with no nic binded
will show one error log "Please stop the ports first":

Interactive-mode selected
Please stop the ports first
Done
testpmd>

This issue is cause by the logic of check link status.

Signed-off-by: Michael Qiu <michael.qiu@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-pmd/testpmd.c