[dpdk-dev] [PATCH 1/5] ethdev: free a port by a dedicated API
Matan Azrad
matan at mellanox.com
Tue Nov 28 12:57:57 CET 2017
Use a dedicated API to free port instead of changing its state
directly.
Signed-off-by: Matan Azrad <matan at mellanox.com>
---
lib/librte_ether/rte_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index 318af28..2d754d9 100644
--- a/lib/librte_ether/rte_ethdev.c
+++ b/lib/librte_ether/rte_ethdev.c
@@ -437,7 +437,7 @@ struct rte_eth_dev *
if (ret < 0)
goto err;
- rte_eth_devices[port_id].state = RTE_ETH_DEV_UNUSED;
+ rte_eth_dev_release_port(&rte_eth_devices[port_id]);
return 0;
err:
--
1.8.3.1
More information about the dev
mailing list