[PATCH v2 04/50] net/ntnic: remove extra calling of the API for release port
Serhii Iliushyk
sil-plv at napatech.com
Mon Oct 7 21:33:40 CEST 2024
From: Oleksandr Kolomeiets <okl-plv at napatech.com>
During rte_eth_dev_close execution,
eth_dev_close function exported by ntnic is called,
followed by a call to rte_eth_dev_release_port.
Since there is no possible returns between the calls,
calling rte_eth_dev_release_port from eth_dev_close
is redundant and error-prone.
Signed-off-by: Oleksandr Kolomeiets <okl-plv at napatech.com>
---
v2
* Update release notes
---
doc/guides/rel_notes/release_24_11.rst | 1 +
drivers/net/ntnic/ntnic_ethdev.c | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/guides/rel_notes/release_24_11.rst b/doc/guides/rel_notes/release_24_11.rst
index e85549c1e1..c808639ee9 100644
--- a/doc/guides/rel_notes/release_24_11.rst
+++ b/doc/guides/rel_notes/release_24_11.rst
@@ -102,6 +102,7 @@ New Features
* Update supported version of the FPGA to 9563.55.49
* Fix Coverity issues
+ * Fix issues related to release 24.07
Removed Items
-------------
diff --git a/drivers/net/ntnic/ntnic_ethdev.c b/drivers/net/ntnic/ntnic_ethdev.c
index f351469d0a..52ca8f2844 100644
--- a/drivers/net/ntnic/ntnic_ethdev.c
+++ b/drivers/net/ntnic/ntnic_ethdev.c
@@ -383,7 +383,6 @@ eth_dev_close(struct rte_eth_dev *eth_dev)
internals->p_drv = NULL;
- rte_eth_dev_release_port(eth_dev);
if (p_drv) {
/* decrease initialized ethernet devices */
p_drv->n_eth_dev_init_count--;
--
2.45.0
More information about the dev
mailing list