app/testpmd: allow detaching a port not closed
authorThomas Monjalon <thomas@monjalon.net>
Fri, 19 Oct 2018 02:07:53 +0000 (04:07 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:05 +0000 (22:14 +0200)
commit3f4a837047ba6779dc93e1daf36ae4368091c893
tree41aa0a1b2f17a2b17cb20e34a4c810b7e04db4cf
parentce6959bf793c9e333098f7620cd2427008de0d5f
app/testpmd: allow detaching a port not closed

The testpmd application aim is for testing;
so order of operations should not be enforced.

There was a test to forbid detaching before closing a port.
However, it may interesting to test what happens in such case.
It is possible for a PMD to automatically close the port when detaching.

in order to avoid a crash, it is checked that the port must be stopped
before detaching (as for closing).

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/testpmd.c