summaryrefslogtreecommitdiff
path: root/drivers/net/failsafe/failsafe_eal.c
diff options
context:
space:
mode:
authorGaetan Rivet <gaetan.rivet@6wind.com>2017-07-18 14:48:17 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2017-07-19 16:25:42 +0300
commitb737a1ee57b6d7a868f71ab97894398fac61963b (patch)
treea58eff897be4937493115fc861be367f07722605 /drivers/net/failsafe/failsafe_eal.c
parenta0194d828100ecf549763d1a80f08cc61275840f (diff)
downloaddpdk-next-eventdev-b737a1ee57b6d7a868f71ab97894398fac61963b.zip
dpdk-next-eventdev-b737a1ee57b6d7a868f71ab97894398fac61963b.tar.gz
dpdk-next-eventdev-b737a1ee57b6d7a868f71ab97894398fac61963b.tar.xz
net/failsafe: support flow API
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com> Acked-by: Olga Shern <olgas@mellanox.com>
Diffstat (limited to 'drivers/net/failsafe/failsafe_eal.c')
-rw-r--r--drivers/net/failsafe/failsafe_eal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/failsafe/failsafe_eal.c b/drivers/net/failsafe/failsafe_eal.c
index 8a3836c..d11ea67 100644
--- a/drivers/net/failsafe/failsafe_eal.c
+++ b/drivers/net/failsafe/failsafe_eal.c
@@ -62,6 +62,7 @@ fs_bus_init(struct rte_eth_dev *dev)
ERROR("sub_device %d init went wrong", i);
return -ENODEV;
}
+ SUB_ID(sdev) = i;
sdev->dev = ETH(sdev)->device;
ETH(sdev)->state = RTE_ETH_DEV_DEFERRED;
sdev->state = DEV_PROBED;