]> git.droids-corp.org - dpdk.git/commit
raw/ifpga: fix monitor thread
authorWei Huang <wei.huang@intel.com>
Tue, 1 Mar 2022 08:47:03 +0000 (03:47 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 7 Mar 2022 22:34:25 +0000 (23:34 +0100)
commit2479a1e9a8886c93ba4c8a7aa2a35a04302f1aae
tree30e544d4f0a6d25c6bd4352e6b70787b3dc7dbca
parent20659eb38099033b9aa4f7476a7ba7b5d3258569
raw/ifpga: fix monitor thread

Monitor thread handles graceful shutdown according to the value of
specific sensors in device, two issues are found below.
1. Thread is not created when card is probed.
2. Thread is canceled without checking presence of other cards.
To fix them, thread is created in pci device probe function, a reference
count is checked before canceling the thread.

Fixes: 9c006c45 ("raw/ifpga: scan PCIe BDF device tree")
Cc: stable@dpdk.org
Signed-off-by: Wei Huang <wei.huang@intel.com>
Acked-by: Tianfei Zhang <tianfei.zhang@intel.com>
drivers/raw/ifpga/ifpga_rawdev.c
drivers/raw/ifpga/ifpga_rawdev.h