summaryrefslogtreecommitdiff
path: root/drivers/net/failsafe/failsafe_eal.c
diff options
context:
space:
mode:
authorRaslan Darawsheh <rasland@mellanox.com>2019-03-18 16:05:26 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-29 17:25:32 +0100
commitfa7bb47aceac5ed38cd89e2dd7f9bf514d09e57b (patch)
treecfb4506db5c68e74d42a5347521be10b3f337c4b /drivers/net/failsafe/failsafe_eal.c
parent08647012458486b6a6c00145ea3d5ad06d3a6a39 (diff)
downloaddpdk-next-eventdev-fa7bb47aceac5ed38cd89e2dd7f9bf514d09e57b.zip
dpdk-next-eventdev-fa7bb47aceac5ed38cd89e2dd7f9bf514d09e57b.tar.gz
dpdk-next-eventdev-fa7bb47aceac5ed38cd89e2dd7f9bf514d09e57b.tar.xz
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>
Diffstat (limited to 'drivers/net/failsafe/failsafe_eal.c')
-rw-r--r--drivers/net/failsafe/failsafe_eal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/failsafe/failsafe_eal.c b/drivers/net/failsafe/failsafe_eal.c
index 8a888b1..56d1669 100644
--- a/drivers/net/failsafe/failsafe_eal.c
+++ b/drivers/net/failsafe/failsafe_eal.c
@@ -114,7 +114,7 @@ fs_bus_init(struct rte_eth_dev *dev)
}
ETH(sdev) = &rte_eth_devices[pid];
SUB_ID(sdev) = i;
- sdev->fs_dev = dev;
+ sdev->fs_port_id = dev->data->port_id;
sdev->dev = ETH(sdev)->device;
sdev->state = DEV_PROBED;
}