[v5,09/10] eal: declare the reinit via cleanup/init feature unsupported

Message ID 20230817042820.137957-10-okaya@kernel.org (mailing list archive)
State New
Delegated to: Thomas Monjalon
Headers
Series support reinit flow |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Sinan Kaya Aug. 17, 2023, 4:28 a.m. UTC
  From: Sinan Kaya <okaya@kernel.org>

Call of rte_eal_init() api after rte_eal_cleanup() possible for
certain application types but this is not an officially supported
feature.

Signed-off-by: Sinan Kaya <okaya@kernel.org>
---
 lib/eal/include/rte_eal.h | 5 +++++
 1 file changed, 5 insertions(+)
  

Comments

Stephen Hemminger Aug. 17, 2023, 1:59 p.m. UTC | #1
On Thu, 17 Aug 2023 00:28:20 -0400
okaya@kernel.org wrote:

> + * @warning
> + * It maybe possisble to call it again after rte_eal_cleanup().
> + * But this usage is dependent on libraries and drivers support which
> + * may not work. Use at y

Sorry, my spelling error made it in here...
  

Patch

diff --git a/lib/eal/include/rte_eal.h b/lib/eal/include/rte_eal.h
index 53c4a5519e..348b340f00 100644
--- a/lib/eal/include/rte_eal.h
+++ b/lib/eal/include/rte_eal.h
@@ -67,6 +67,11 @@  int rte_eal_iopl_init(void);
  * as possible in the application's main() function.
  * It puts the WORKER lcores in the WAIT state.
  *
+ * @warning
+ * It maybe possisble to call it again after rte_eal_cleanup().
+ * But this usage is dependent on libraries and drivers support which
+ * may not work. Use at your own risk.
+ *
  * @param argc
  *   A non-negative value.  If it is greater than 0, the array members
  *   for argv[0] through argv[argc] (non-inclusive) shall contain pointers