Re: [dpdk-dev] [PATCH] net/af_xdp: fix failure on rte_dev_remove

2019-06-06 Thread David Marchand
Ferruh, On Wed, Jun 5, 2019 at 5:30 PM Ferruh Yigit wrote: > On 6/1/2019 5:13 PM, Ye Xiaolong wrote: > > On 05/31, William Tu wrote: > >> When users call rte_eth_dev_close() and rte_dev_remove(), the af_xdp > >> pmd return -1 (EPERM) due to eth_dev == NULL. > >> > >> Since the af_xdp pmd driver

Re: [dpdk-dev] [PATCH] net/af_xdp: fix failure on rte_dev_remove

2019-06-05 Thread Ferruh Yigit
On 6/1/2019 5:13 PM, Ye Xiaolong wrote: > On 05/31, William Tu wrote: >> When users call rte_eth_dev_close() and rte_dev_remove(), the af_xdp >> pmd return -1 (EPERM) due to eth_dev == NULL. >> >> Since the af_xdp pmd driver advertises RTE_ETH_DEV_CLOSE_REMOVE, all >> the resources are freed on rte

Re: [dpdk-dev] [PATCH] net/af_xdp: fix failure on rte_dev_remove

2019-06-01 Thread Ye Xiaolong
On 05/31, William Tu wrote: >When users call rte_eth_dev_close() and rte_dev_remove(), the af_xdp >pmd return -1 (EPERM) due to eth_dev == NULL. > >Since the af_xdp pmd driver advertises RTE_ETH_DEV_CLOSE_REMOVE, all >the resources are freed on rte_eth_dev_close(). rte_dev_remove() tries >to detac

[dpdk-dev] [PATCH] net/af_xdp: fix failure on rte_dev_remove

2019-05-31 Thread William Tu
When users call rte_eth_dev_close() and rte_dev_remove(), the af_xdp pmd return -1 (EPERM) due to eth_dev == NULL. Since the af_xdp pmd driver advertises RTE_ETH_DEV_CLOSE_REMOVE, all the resources are freed on rte_eth_dev_close(). rte_dev_remove() tries to detach device and subsequently calls rt