app/testpmd: fix error message when closing port twice
authorMichael Qiu <michael.qiu@intel.com>
Wed, 24 Jun 2015 07:56:25 +0000 (15:56 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 30 Jul 2015 00:15:32 +0000 (02:15 +0200)
commitd4e8ad64fadde895146f944a71d6ba45c3fcbca6
tree8bdafba9ed03975f7fbb3d73b99b570bcdc941f2
parent78ef434ae2829f4bfb717784d1dc21a9bf1e663e
app/testpmd: fix error message when closing port twice

When close one port twice, testpmd will give out wrong messagse.

testpmd> port stop  0
Stopping ports...
Checking link statuses...
Port 0 Link Up - speed 0 Mbps - full-duplex
Port 1 Link Up - speed 0 Mbps - full-duplex
Done
testpmd> port close 0
Closing ports...
Done
testpmd> port close 0
Closing ports...
Port 0 is now not stopped
Done
testpmd>

Signed-off-by: Michael Qiu <michael.qiu@intel.com>
app/test-pmd/testpmd.c