From: Matan Azrad Date: Mon, 22 Jan 2018 16:38:21 +0000 (+0000) Subject: net/failsafe: free port by dedicated function X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fac0ae546e5f205bf08f9f0f530ccd0c28271c6e;p=dpdk.git net/failsafe: free port by dedicated function Call dedicated ethdev API to free port in remove time as was done in other fail-safe places. Signed-off-by: Matan Azrad Acked-by: Gaetan Rivet --- diff --git a/drivers/net/failsafe/failsafe_ether.c b/drivers/net/failsafe/failsafe_ether.c index 0f1630ea74..643f3d6959 100644 --- a/drivers/net/failsafe/failsafe_ether.c +++ b/drivers/net/failsafe/failsafe_ether.c @@ -298,7 +298,7 @@ fs_dev_remove(struct sub_device *sdev) ERROR("Bus detach failed for sub_device %u", SUB_ID(sdev)); } else { - ETH(sdev)->state = RTE_ETH_DEV_UNUSED; + rte_eth_dev_release_port(ETH(sdev)); } sdev->state = DEV_PARSED; /* fallthrough */