net/failsafe: improve Rx sub-devices iteration
authorMatan Azrad <matan@mellanox.com>
Tue, 19 Dec 2017 17:14:29 +0000 (17:14 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit8052bbd9d548b11cc35826553ed79ded65fddd1d
tree51e48c0c95f26f6c140fc7db8806166b98413042
parent1e2670a9002d59c0c0aa1b29a8997bb7177cffe0
net/failsafe: improve Rx sub-devices iteration

Connecting the sub-devices each other by cyclic linked list can help to
iterate over them by Rx burst functions because there is no need to
check the sub-devices ring wraparound.

Create the aforementioned linked-list and change the Rx burst functions
iteration accordingly.

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