Re: [dpdk-dev] [PATCH] ethdev: fix port accessing after release

2018-03-30 Thread Ferruh Yigit
On 3/28/2018 1:25 PM, Thomas Monjalon wrote: > 28/03/2018 14:10, Matan Azrad: >> rte_eth_dev_pci_release() function wrongly releases an ethdev port and >> then releases internal fields of this port. >> This behavior is problematic, because after the release, the port may >> be reallocated again by

Re: [dpdk-dev] [PATCH] ethdev: fix port accessing after release

2018-03-28 Thread Thomas Monjalon
28/03/2018 14:10, Matan Azrad: > rte_eth_dev_pci_release() function wrongly releases an ethdev port and > then releases internal fields of this port. > This behavior is problematic, because after the release, the port may > be reallocated again by another thread or just be invalid for any > usage.

[dpdk-dev] [PATCH] ethdev: fix port accessing after release

2018-03-28 Thread Matan Azrad
rte_eth_dev_pci_release() function wrongly releases an ethdev port and then releases internal fields of this port. This behavior is problematic, because after the release, the port may be reallocated again by another thread or just be invalid for any usage. Move the release operation to the end of