vdpa/mlx5: improve portability of thread naming
authorThomas Monjalon <thomas@monjalon.net>
Wed, 21 Apr 2021 17:59:23 +0000 (19:59 +0200)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 28 Apr 2021 03:13:49 +0000 (05:13 +0200)
commit91d7e764622671e19e530447cb63a77a48a52c9d
tree910edabd1679addd934a3000c4a654c44f7269e5
parent9f528374bffb5868ec6bf896f57919a709b31911
vdpa/mlx5: improve portability of thread naming

The function pthread_setname_np is non-portable,
so it may be unavailable in old glibc or other systems.
The function rte_thread_setname is workarounding portability issues.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Reviewed-by: Chengwen Feng <fengchengwen@huawei.com>
drivers/vdpa/mlx5/mlx5_vdpa_event.c