]> git.droids-corp.org - dpdk.git/commitdiff
net/ark: set generator delay thread name
authorChengwen Feng <fengchengwen@huawei.com>
Sat, 17 Apr 2021 09:09:42 +0000 (17:09 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 21 Apr 2021 13:57:51 +0000 (15:57 +0200)
This patch supports set delay packet generator start thread name which
is helpful for debugging.

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/ark/ark_ethdev.c

index 9dea5facb4506b6668fe7a9f5e4dbc8f8791b739..6372cf7740a1c83cd8a04378a3c9c5e444f69e78 100644 (file)
@@ -568,8 +568,8 @@ eth_ark_dev_start(struct rte_eth_dev *dev)
                /* Delay packet generatpr start allow the hardware to be ready
                 * This is only used for sanity checking with internal generator
                 */
-               if (pthread_create(&thread, NULL,
-                                  ark_pktgen_delay_start, ark->pg)) {
+               if (rte_ctrl_thread_create(&thread, "ark-delay-pg", NULL,
+                                          ark_pktgen_delay_start, ark) != 0) {
                        ARK_PMD_LOG(ERR, "Could not create pktgen "
                                    "starter thread\n");
                        return -1;