Re: [dpdk-dev] [PATCH 20.05] ethdev: clear struct on releasing port

2020-02-13 Thread Thomas Monjalon
13/02/2020 17:05, Ferruh Yigit: > On 2/13/2020 3:27 PM, Thomas Monjalon wrote: > > 13/02/2020 16:16, Ferruh Yigit: > >> On 2/13/2020 2:33 PM, Thomas Monjalon wrote: > >>> The function rte_eth_dev_release_port() is called by drivers > >>> when closing or removing a device. > >>> Its main usage shoul

Re: [dpdk-dev] [PATCH 20.05] ethdev: clear struct on releasing port

2020-02-13 Thread Ferruh Yigit
On 2/13/2020 3:27 PM, Thomas Monjalon wrote: > 13/02/2020 16:16, Ferruh Yigit: >> On 2/13/2020 2:33 PM, Thomas Monjalon wrote: >>> The function rte_eth_dev_release_port() is called by drivers >>> when closing or removing a device. >>> Its main usage should be via rte_eth_dev_close() by up-to-date >

Re: [dpdk-dev] [PATCH 20.05] ethdev: clear struct on releasing port

2020-02-13 Thread Thomas Monjalon
13/02/2020 16:16, Ferruh Yigit: > On 2/13/2020 2:33 PM, Thomas Monjalon wrote: > > The function rte_eth_dev_release_port() is called by drivers > > when closing or removing a device. > > Its main usage should be via rte_eth_dev_close() by up-to-date > > drivers which are compliant with RTE_ETH_DEV_

Re: [dpdk-dev] [PATCH 20.05] ethdev: clear struct on releasing port

2020-02-13 Thread Ferruh Yigit
On 2/13/2020 2:33 PM, Thomas Monjalon wrote: > The function rte_eth_dev_release_port() is called by drivers > when closing or removing a device. > Its main usage should be via rte_eth_dev_close() by up-to-date > drivers which are compliant with RTE_ETH_DEV_CLOSE_REMOVE flag. > > When a port is rel

[dpdk-dev] [PATCH 20.05] ethdev: clear struct on releasing port

2020-02-13 Thread Thomas Monjalon
The function rte_eth_dev_release_port() is called by drivers when closing or removing a device. Its main usage should be via rte_eth_dev_close() by up-to-date drivers which are compliant with RTE_ETH_DEV_CLOSE_REMOVE flag. When a port is released, the data (rte_eth_dev_data) are cleared, but the p