eventdev: remove redundant thread name setting
authorChengwen Feng <fengchengwen@huawei.com>
Fri, 30 Apr 2021 09:34:37 +0000 (17:34 +0800)
committerJerin Jacob <jerinj@marvell.com>
Mon, 3 May 2021 09:46:26 +0000 (11:46 +0200)
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 <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
lib/eventdev/rte_event_eth_rx_adapter.c

index ca166a6..d317e89 100644 (file)
@@ -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: