net/failsafe: replace sub-device pointer with port id
authorRaslan Darawsheh <rasland@mellanox.com>
Mon, 18 Mar 2019 16:05:27 +0000 (16:05 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Mar 2019 16:25:32 +0000 (17:25 +0100)
commit2f4b99831c2528a9b3e0fbadda34f590313b330b
treebb1354ea26ef2207637c0dd7232bf4adc9c72cd7
parentfa7bb47aceac5ed38cd89e2dd7f9bf514d09e57b
net/failsafe: replace sub-device pointer with port id

In multiprocess context, the pointer to sub-device is shared between
processes. Previously, it was a pointer to per process eth_dev so
it's needed to replace this dependency.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Signed-off-by: Raslan Darawsheh <rasland@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_ether.c
drivers/net/failsafe/failsafe_private.h