net/failsafe: replace local device with shared data
authorRaslan Darawsheh <rasland@mellanox.com>
Mon, 18 Mar 2019 16:05:25 +0000 (16:05 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Mar 2019 16:25:32 +0000 (17:25 +0100)
commit08647012458486b6a6c00145ea3d5ad06d3a6a39
tree343d36e524fab01eb334eb0a909c8b5d907acc05
parente3bcaf3a0f375998a2f2f487e06ff71705a858c0
net/failsafe: replace local device with shared data

In multiprocess context, the private structure is shared between
processes. The back reference from private to generic data was using
a pointer to a per process eth_dev. It's now changed to a reference of
the shared data.

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