diff mbox series

[4/7] raw/ifpga: support set monitor thread name

Message ID 1618051221-19962-5-git-send-email-humin29@huawei.com (mailing list archive)
State Superseded
Delegated to: David Marchand
Headers show
Series support set thread name | expand

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Min Hu (Connor) April 10, 2021, 10:40 a.m. UTC
From: Chengwen Feng <fengchengwen@huawei.com>

This patch supports set monitor 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/raw/ifpga/ifpga_rawdev.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/raw/ifpga/ifpga_rawdev.c b/drivers/raw/ifpga/ifpga_rawdev.c
index 05d79bf..4db6884 100644
--- a/drivers/raw/ifpga/ifpga_rawdev.c
+++ b/drivers/raw/ifpga/ifpga_rawdev.c
@@ -534,6 +534,7 @@  ifpga_monitor_start_func(void)
 				"Fail to create ifpga nonitor thread");
 			return -1;
 		}
+		rte_thread_setname(ifpga_monitor_start_thread, "ifpga-monitor");
 		ifpga_monitor_start = 1;
 	}