Re: [PATCH v5] raw/ifpga: fix pthread cannot join

2022-01-21 Thread Stephen Hemminger
On Thu, 20 Jan 2022 22:32:46 -0500 Wei Huang wrote: > @@ -497,7 +497,7 @@ static int set_surprise_link_check_aer( > int gsd_enable, ret; > #define MS 1000 > > - while (1) { > + while (rte_atomic32_read(&ifpga_monitor_start)) { Better, but rte_atomic is deprecated in favor of usi

[PATCH v5] raw/ifpga: fix pthread cannot join

2022-01-20 Thread Wei Huang
From: Tianfei Zhang When we want to close a thread, we should set a flag to notify thread handler function. Fixes: 9c006c45 ("raw/ifpga: scan PCIe BDF device tree") Cc: sta...@dpdk.org Signed-off-by: Tianfei Zhang --- v2: update commit log --- v3: set thread id to 0 after pthread_join --- v4: