app/testpmd: fix removed device link status asking
authorMatan Azrad <matan@mellanox.com>
Thu, 3 May 2018 10:31:47 +0000 (10:31 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 14 May 2018 02:20:25 +0000 (04:20 +0200)
commit0da2a62bf9d72625fb5b779d9fd91e471ed2fb4a
treeb87b57c68966d035136776e67e314c897120e05c
parent03ce2c53a3905b11e54c424ca395ae5bea186cbd
app/testpmd: fix removed device link status asking

In the RMV device event callback, there is a call for the removed
device stop operation which triggers a link status operation for the
removed device.

It may casue an error from the removed device PMD.

Skip the link status operation in the above described case.

Fixes: 284c908cc588 ("app/testpmd: request device removal interrupt")
Cc: stable@dpdk.org
Signed-off-by: Matan Azrad <matan@mellanox.com>
app/test-pmd/testpmd.c