82255e036a
Add two functions to complete the resource free work, one is 'ifpga_adapter_destroy()', the other is 'ifpga_bus_uinit()'. Then call 'opae_adapter_destroy()' and 'opae_adapter_data_free()' in 'ifpga_rawdev_close()' to free resources. Also 'opae_adapter_free()' is removed from 'ifpga_rawdev_destroy()', because opae adapter is pointed by dev_private member in raw_dev, it will be freed in 'rte_rawdev_pmd_release()'. Signed-off-by: Wei Huang <wei.huang@intel.com> Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com> Acked-by: Rosen Xu <rosen.xu@intel.com>
13 lines
310 B
C
13 lines
310 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2010-2018 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _IFPGA_ENUMERATE_H_
|
|
#define _IFPGA_ENUMERATE_H_
|
|
|
|
int ifpga_bus_init(struct ifpga_hw *hw);
|
|
int ifpga_bus_uinit(struct ifpga_hw *hw);
|
|
int ifpga_bus_enumerate(struct ifpga_hw *hw);
|
|
|
|
#endif /* _IFPGA_ENUMERATE_H_ */
|