net/failsafe: fix Tx sub device deactivating
authorMatan Azrad <matan@mellanox.com>
Wed, 16 Aug 2017 14:19:28 +0000 (17:19 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:47 +0000 (02:49 +0200)
commitd8d89966c9595e3db1c7312fe94f3c8235b4ccfe
treeba3625cd5aa27b42f84656a23b435a41a1f9111b
parente5857e10915f34755bc52929ccc83495e3457810
net/failsafe: fix Tx sub device deactivating

The corrupted code couldn't recognize that all sub devices
were not ready for Tx traffic when failsafe PMD was trying
to switch device because of an unreachable condition using.

Hence, the current Tx sub device variable was not updated
correctly.

The fix removed the unreachable branch and added new one
in the right place respecting the original intent.

Fixes: ebea83f899d8 ("net/failsafe: add plug-in support")
Fixes: 598fb8aec6f6 ("net/failsafe: support device removal")
Cc: stable@dpdk.org
Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
drivers/net/failsafe/failsafe_private.h