From 0bac9fc7915483500f0e37f1cd66d1b6fa55308b Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Fri, 30 Apr 2021 17:34:37 +0800 Subject: [PATCH] eventdev: remove redundant thread name setting The thread name already set by rte_ctrl_thread_create() API, so remove the call of rte_thread_setname() API. Fixes: 3810ae435783 ("eventdev: add interrupt driven queues to Rx adapter") Cc: stable@dpdk.org Signed-off-by: Chengwen Feng Signed-off-by: Min Hu (Connor) Acked-by: Jerin Jacob --- lib/eventdev/rte_event_eth_rx_adapter.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c index ca166a65f2..d317e89c1b 100644 --- a/lib/eventdev/rte_event_eth_rx_adapter.c +++ b/lib/eventdev/rte_event_eth_rx_adapter.c @@ -1432,10 +1432,8 @@ rxa_create_intr_thread(struct rte_event_eth_rx_adapter *rx_adapter) err = rte_ctrl_thread_create(&rx_adapter->rx_intr_thread, thread_name, NULL, rxa_intr_thread, rx_adapter); - if (!err) { - rte_thread_setname(rx_adapter->rx_intr_thread, thread_name); + if (!err) return 0; - } RTE_EDEV_LOG_ERR("Failed to create interrupt thread err = %d\n", err); error: -- 2.20.1