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

2021-10-14 Thread lihuisong (C)
在 2021/10/14 20:50, Thomas Monjalon 写道: 14/10/2021 14:32, lihuisong (C): Hi, Thomas *The commit log:* 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 de

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

2021-10-14 Thread Thomas Monjalon
14/10/2021 14:32, lihuisong (C): > Hi, Thomas > > *The commit log:* > 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

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

2021-10-14 Thread lihuisong (C)
Hi, Thomas *The commit log:* 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

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

2021-10-13 Thread lihuisong (C)
在 2021/10/12 23:33, Thomas Monjalon 写道: 12/10/2021 13:39, Huisong Li: The rte_eth_dev_pci_generic_remove() will be called to detach an Ethernet device when App calls rte_dev_remove() to detach a pci device. In addition, the rte_eth_dev_close() can also detach an Ethernet device. In secondary p

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

2021-10-12 Thread Thomas Monjalon
12/10/2021 13:39, Huisong Li: > The rte_eth_dev_pci_generic_remove() will be called to detach an Ethernet > device when App calls rte_dev_remove() to detach a pci device. In addition, > the rte_eth_dev_close() can also detach an Ethernet device. > In secondary process, if App first calls rte_eth_de

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

2021-10-12 Thread Huisong Li
The rte_eth_dev_pci_generic_remove() will be called to detach an Ethernet device when App calls rte_dev_remove() to detach a pci device. In addition, the rte_eth_dev_close() can also detach an Ethernet device. In secondary process, if App first calls rte_eth_dev_close() and then calls rte_dev_remov