Re: [dpdk-dev] [PATCH V4] ethdev: fix eth device released repeatedly

2021-10-21 Thread Ferruh Yigit
On 10/21/2021 3:24 AM, Huisong Li wrote: In secondary process, rte_eth_dev_close() doesn't clear eth_dev->data. If calling rte_dev_remove() after rte_eth_dev_close(), in rte_eth_dev_pci_generic_remove() function, the released eth device still can be found by its name in shared memory. As a result

[dpdk-dev] [PATCH V4] ethdev: fix eth device released repeatedly

2021-10-20 Thread Huisong Li
In secondary process, rte_eth_dev_close() doesn't clear eth_dev->data. If calling rte_dev_remove() after rte_eth_dev_close(), in rte_eth_dev_pci_generic_remove() function, the released eth device still can be found by its name in shared memory. As a result, the eth device will be released repeatedl