net/failsafe: change back-reference from sub-device
authorRaslan Darawsheh <rasland@mellanox.com>
Mon, 18 Mar 2019 16:05:26 +0000 (16:05 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Mar 2019 16:25:32 +0000 (17:25 +0100)
commitfa7bb47aceac5ed38cd89e2dd7f9bf514d09e57b
treecfb4506db5c68e74d42a5347521be10b3f337c4b
parent08647012458486b6a6c00145ea3d5ad06d3a6a39
net/failsafe: change back-reference from sub-device

In multiprocess context, the sub-device structure is shared
between processes. The reference to the failsafe device was
a per process pointer. It's changed to port id which is the
same for all processes.

Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
drivers/net/failsafe/failsafe_eal.c
drivers/net/failsafe/failsafe_ether.c
drivers/net/failsafe/failsafe_intr.c
drivers/net/failsafe/failsafe_private.h