summaryrefslogtreecommitdiff
path: root/drivers/net/failsafe/failsafe_eal.c
diff options
context:
space:
mode:
authorRaslan Darawsheh <rasland@mellanox.com>2019-03-18 16:05:27 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-29 17:25:32 +0100
commit2f4b99831c2528a9b3e0fbadda34f590313b330b (patch)
treebb1354ea26ef2207637c0dd7232bf4adc9c72cd7 /drivers/net/failsafe/failsafe_eal.c
parentfa7bb47aceac5ed38cd89e2dd7f9bf514d09e57b (diff)
downloaddpdk-next-eventdev-2f4b99831c2528a9b3e0fbadda34f590313b330b.zip
dpdk-next-eventdev-2f4b99831c2528a9b3e0fbadda34f590313b330b.tar.gz
dpdk-next-eventdev-2f4b99831c2528a9b3e0fbadda34f590313b330b.tar.xz
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>
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 56d1669..74fd8e9 100644
--- a/drivers/net/failsafe/failsafe_eal.c
+++ b/drivers/net/failsafe/failsafe_eal.c
@@ -112,7 +112,7 @@ fs_bus_init(struct rte_eth_dev *dev)
continue;
}
}
- ETH(sdev) = &rte_eth_devices[pid];
+ sdev->sdev_port_id = pid;
SUB_ID(sdev) = i;
sdev->fs_port_id = dev->data->port_id;
sdev->dev = ETH(sdev)->device;