]> git.droids-corp.org - dpdk.git/commit
raw/ifpga: remove virtual devices on close
authorWei Huang <wei.huang@intel.com>
Tue, 7 Jun 2022 09:07:21 +0000 (05:07 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Jun 2022 13:50:54 +0000 (15:50 +0200)
commitae835aba40349ee9631ef6b52e68a2893febe7e0
treea539bff169bf90d038e01bf932ace12ffb874caf
parent400e6a64cdbbe665099ad0b4a6f850dda3248455
raw/ifpga: remove virtual devices on close

Virtual devices created on ifpga raw device will not be removed
when ifpga device has closed. To avoid resource leak problem,
this patch introduces an ifpga virtual device remove function,
virtual devices will be destroyed after the ifpga raw device closed.

Fixes: ef1e8ede3da5 ("raw/ifpga: add Intel FPGA bus rawdev driver")
Cc: stable@dpdk.org
Signed-off-by: Wei Huang <wei.huang@intel.com>
Acked-by: Tianfei Zhang <tianfei.zhang@intel.com>
Reviewed-by: Rosen Xu <rosen.xu@intel.com>
drivers/raw/ifpga/ifpga_rawdev.c
drivers/raw/ifpga/ifpga_rawdev.h