doc: announce API change to remove exit calls in libs
PATCH 1/1 doc: announce API change to remove exit calls in libs
Two public functions from EAL and metrics libraries need to return some new error codes instead of calling rte_panic or rte_exit.
--- doc/guides/rel_notes/deprecation.rst | 6 ++++++ 1 file changed, 6 insertions(+)
doc/guides/rel_notes/deprecation.rst +6 -0
@@ -20,6 +20,9 @@ Deprecation Notices * kvargs: The function ``rte_kvargs_process`` will get a new parameter for returning key match count. It will ease handling of no-match case. +* eal: The function ``rte_eal_remote_launch`` will return new error codes + after read or write error on the pipe, instead of calling ``rte_panic``. + * eal: both declaring and identifying devices will be streamlined in v18.11. New functions will appear to query a specific port from buses, classes of device and device drivers. Device declaration will be made coherent with the
@@ -82,3 +85,6 @@ Deprecation Notices * cryptodev: the ``uint8_t *data`` member of ``key`` structure in the xforms structure (``rte_crypto_cipher_xform``, ``rte_crypto_auth_xform``, and ``rte_crypto_aead_xform``) will be changed to ``const uint8_t *data``. + +* metrics: The function ``rte_metrics_init`` will have a non-void return + in order to notify errors instead of calling ``rte_exit``.
Signature · 1 line
2.21.0
Quoted 10 lines · Thomas Monjalon
Two public functions from EAL and metrics libraries need to return some new error codes instead of calling
rte_panicorrte_exit.Signed-off-by Thomas Monjalon <[email protected]>---
--
2.21.0
09/05/2019 07:31, Arnon Warshavsky:
Quoted 7 lines · Thomas Monjalon
Quoted 5 lines
Two public functions from EAL and metrics libraries need to return some new error codes instead of calling
rte_panicorrte_exit.Signed-off-by Thomas Monjalon <[email protected]>Acked-by Arnon Warshavsky <[email protected]>
Applied
Quoted 14 lines · Thomas Monjalon
Two public functions from EAL and metrics libraries need to return some new error codes instead of calling
rte_panicorrte_exit.Signed-off-by Thomas Monjalon <[email protected]>--- doc/guides/rel_notes/deprecation.rst | 6 ++++++ 1 file changed, 6 insertions(+)doc/guides/rel_notes/deprecation.rst +0
-0
doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 26
Quoted 7 lines
doc/guides/rel_notes/deprecation.rst +3
-0@@ -20,6 +20,9 @@ Deprecation Notices * kvargs: The function ``rte_kvargs_process`` will get a new parameter for returning key match count. It will ease handling of no-match case. +* eal: The function ``rte_eal_remote_launch`` will return new error codes + after read or write error on the pipe, instead of calling ``rte_panic``. +
Nit: do we need error codes ? or only a single new error code ?
* eal: both declaring and identifying devices will be streamlined in
Quoted 14 lines
v18.11.
New functions will appear to query a specific port from buses, classes
of
device and device drivers. Device declaration will be made coherent
with thedoc/guides/rel_notes/deprecation.rst +0
-0@@ -82,3 +85,6 @@ Deprecation Notices * cryptodev: the ``uint8_t *data`` member of ``key`` structure in thexforms
structure (``rte_crypto_cipher_xform``, ``rte_crypto_auth_xform``, and ``rte_crypto_aead_xform``) will be changed to ``constuint8_t*data``.doc/guides/rel_notes/deprecation.rst +3
-1+ +* metrics: The function ``rte_metrics_init`` will have a non-void return + in order to notify errors instead of calling ``rte_exit``. --
Quoted 3 lines
2.21.0
Signature · 1 line
David Marchand
09/05/2019 09:34, David Marchand:
Quoted 9 lines · Thomas Monjalon
doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 25
Quoted 6 lines
doc/guides/rel_notes/deprecation.rst +3
-0+* eal: The function ``rte_eal_remote_launch`` will return new error codes + after read or write error on the pipe, instead of calling ``rte_panic``. +Nit: do we need error codes ? or only a single new error code ?
That's something to discuss.
In my opinion, we should return any errno from read and write syscalls:
return -errno;
Quoted 4 lines · Thomas Monjalon
Two public functions from EAL and metrics libraries need to return some new error codes instead of calling
rte_panicorrte_exit.Signed-off-by Thomas Monjalon <[email protected]>