[RFC,v2,01/17] doc: document intention to deprecate RTE_LOGTYPE_USER*
Commit Message
These static log types should be deprecated in next stable
release.
Also, remove use of USER1 from example of doing mlockall.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
doc/guides/prog_guide/writing_efficient_code.rst | 3 +--
doc/guides/rel_notes/deprecation.rst | 4 ++++
2 files changed, 5 insertions(+), 2 deletions(-)
@@ -89,8 +89,7 @@ To avoid these you could pre-load, and lock them into memory with the ``mlockall
.. code-block:: c
if (mlockall(MCL_CURRENT | MCL_FUTURE)) {
- RTE_LOG(NOTICE, USER1, "mlockall() failed with error \"%s\"\n",
- strerror(errno));
+ perror("mlockall");
}
Communication Between lcores
@@ -136,3 +136,7 @@ Deprecation Notices
Its removal has been postponed to let potential users report interest
in maintaining it.
In the absence of such interest, this library will be removed in DPDK 23.11.
+
+* rte_log: The pre-defined RTE_LOGTYPE_USER* macros are planned to be
+ deprecated starting with the 23.07 release. Applications should use the
+ dynamic log types available with RTE_LOG_REGISTER instead.