net/failsafe: fix Rx burst infinite loop
authorMatan Azrad <matan@mellanox.com>
Wed, 24 Jan 2018 10:19:17 +0000 (10:19 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
commit745b72dab9a33a74f5925f2ce425fd30b21e958a
tree6d1df95c877579494381d962b92aa0fd891ef3a0
parentd26ddeaf1120e525f72e79546aa9d7164502f1d7
net/failsafe: fix Rx burst infinite loop

In case of plugged out device, the fail-safe PMD uses failsafe_rx_burst
function for packet receiving.

This function iterates over the present sub-devices until it
receives a traffic from one of them or they are all cannot receive
packets.

The corrupted code didn't advance the sub-device pointer when the
sub-device was not present and caused to infinite loop.

Advance the sub-device pointer also in plugged-out sub-device case.

Fixes: 8052bbd9d548 ("net/failsafe: improve Rx sub-devices iteration")

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
drivers/net/failsafe/failsafe_rxtx.c