From 52f4e5db65243a21aba0b74bb22606f793e40454 Mon Sep 17 00:00:00 2001 From: Keith Wiles Date: Mon, 30 Oct 2023 17:10:01 -0500 Subject: [PATCH] fix lua builds Signed-off-by: Keith Wiles --- VERSION | 2 +- app/pktgen-gui.c | 2 +- changelog.txt | 1 + lib/lua/lua_socket.c | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 7d7a0702..16e4d402 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -23.10.0 +23.10.1 diff --git a/app/pktgen-gui.c b/app/pktgen-gui.c index f568a7c0..072ec49f 100644 --- a/app/pktgen-gui.c +++ b/app/pktgen-gui.c @@ -1351,5 +1351,5 @@ pktgen_gui_main(int argc, char *argv[]) printf("Error creating GUI thread\n"); return; } - rte_thread_setname(inc_x_thread, "Pktgen GUI"); + rte_thread_set_name(inc_x_thread, "Pktgen GUI"); } diff --git a/changelog.txt b/changelog.txt index 563ad670..792355bc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Pktgen-DPDK - Traffic Generator powered by DPDK ** (Pktgen) Sounds like 'Packet-Gen'** **=== Modifications ===** + - 23.10.1 - Fix rte_thread_setname() change to rte_thread_set_name() for lua builds - 23.10.0 - Change TX rate calculations to be more accurate Change timer routines to use DPDK timer manager Minor cleanup and bump version number. diff --git a/lib/lua/lua_socket.c b/lib/lua/lua_socket.c index c3f14733..99af16d5 100644 --- a/lib/lua/lua_socket.c +++ b/lib/lua/lua_socket.c @@ -299,7 +299,7 @@ lua_server(void *arg) return NULL; } -int rte_thread_setname(pthread_t id, const char *name); +int rte_thread_set_name(pthread_t id, const char *name); int lua_start_socket(luaData_t *ld, pthread_t *pthread, char *hostname, int port) @@ -316,7 +316,7 @@ lua_start_socket(luaData_t *ld, pthread_t *pthread, char *hostname, int port) if (r) return -1; - rte_thread_setname(*pthread, "pktgen-socket"); + rte_thread_set_name(*pthread, "pktgen-socket"); return 0; }