[v4,4/4] eal: deprecate rte thread setname API
Checks
Commit Message
Notify deprecation of rte_thread_setname API, it is being removed as it
exposes platform-specific thread details. The functionality it provided
is now implicitly provided via the rte_lcore_set_name API if the
underlying platform supports it.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
doc/guides/rel_notes/deprecation.rst | 4 ++++
lib/eal/include/rte_lcore.h | 2 ++
2 files changed, 6 insertions(+)
@@ -126,3 +126,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.
+
+* eal: The function ``rte_thread_setname`` will be removed, continuing
+ the effort to decouple EAL from platform-specific thread
+ implementations.
@@ -13,6 +13,7 @@
*/
#include <stdio.h>
+#include <rte_common.h>
#include <rte_compat.h>
#include <rte_config.h>
#include <rte_per_lcore.h>
@@ -349,6 +350,7 @@ enum rte_lcore_role_t {
* @return
* On success, return 0; otherwise return a negative value.
*/
+__rte_deprecated
int rte_thread_setname(pthread_t id, const char *name);
/**