app/testpmd: fix invalid port detaching
authorMatan Azrad <matan@mellanox.com>
Tue, 12 Nov 2019 08:47:39 +0000 (08:47 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 20 Nov 2019 23:18:02 +0000 (00:18 +0100)
commit43d0e304980a1527bcac92dc679057b189e2545a
treebcdb2bf366ab1dd51a273ce652e032bc36435154
parentfd03a747b0c77a82b33104cef9d317882734e1ee
app/testpmd: fix invalid port detaching

The port was not validated before detaching.

Ignore port detach operation when the port is not valid.

Fixes: f8e5baa2662d ("app/testpmd: check not detaching device twice")
Cc: stable@dpdk.org
Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/testpmd.c