net/failsafe: use ownership mechanism for slaves
authorMatan Azrad <matan@mellanox.com>
Mon, 22 Jan 2018 16:38:22 +0000 (16:38 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 31 Jan 2018 19:49:42 +0000 (20:49 +0100)
commitdcd0c9c32b8d6c360af1fc8ff2f92bb713faae8e
treecac3a97dac3142cfdf6e9337872b55ddb0df2d8c
parentfac0ae546e5f205bf08f9f0f530ccd0c28271c6e
net/failsafe: use ownership mechanism for slaves

Fail-safe PMD sub devices management is based on ethdev port mechanism.
So, the sub-devices management structures are exposed to other DPDK
entities which may use them in parallel to fail-safe PMD.

Use the new port ownership mechanism to avoid multiple managments of
fail-safe PMD sub-devices.

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_eal.c
drivers/net/failsafe/failsafe_private.h