Re: [dpdk-dev] [PATCH 19/20] app/testpmd: reset port status on close notification

2020-09-24 Thread Ferruh Yigit
On 9/24/2020 1:17 PM, Thomas Monjalon wrote: 24/09/2020 14:07, Ferruh Yigit: On 9/23/2020 9:32 PM, Thomas Monjalon wrote: 23/09/2020 18:45, Ferruh Yigit: On 9/13/2020 11:07 PM, Thomas Monjalon wrote: Since rte_eth_dev_release_port() is called on all port close operations, the event RTE_ETH_EV

Re: [dpdk-dev] [PATCH 19/20] app/testpmd: reset port status on close notification

2020-09-24 Thread Thomas Monjalon
24/09/2020 14:07, Ferruh Yigit: > On 9/23/2020 9:32 PM, Thomas Monjalon wrote: > > 23/09/2020 18:45, Ferruh Yigit: > >> On 9/13/2020 11:07 PM, Thomas Monjalon wrote: > >>> Since rte_eth_dev_release_port() is called on all port close operations, > >>> the event RTE_ETH_EVENT_DESTROY can be reliably

Re: [dpdk-dev] [PATCH 19/20] app/testpmd: reset port status on close notification

2020-09-24 Thread Ferruh Yigit
On 9/23/2020 9:32 PM, Thomas Monjalon wrote: 23/09/2020 18:45, Ferruh Yigit: On 9/13/2020 11:07 PM, Thomas Monjalon wrote: Since rte_eth_dev_release_port() is called on all port close operations, the event RTE_ETH_EVENT_DESTROY can be reliably used for resetting the port status on the applicati

Re: [dpdk-dev] [PATCH 19/20] app/testpmd: reset port status on close notification

2020-09-23 Thread Thomas Monjalon
23/09/2020 18:45, Ferruh Yigit: > On 9/13/2020 11:07 PM, Thomas Monjalon wrote: > > Since rte_eth_dev_release_port() is called on all port close operations, > > the event RTE_ETH_EVENT_DESTROY can be reliably used for resetting > > the port status on the application side. > > > > The intermediate

Re: [dpdk-dev] [PATCH 19/20] app/testpmd: reset port status on close notification

2020-09-23 Thread Ferruh Yigit
On 9/13/2020 11:07 PM, Thomas Monjalon wrote: Since rte_eth_dev_release_port() is called on all port close operations, the event RTE_ETH_EVENT_DESTROY can be reliably used for resetting the port status on the application side. The intermediate state RTE_PORT_HANDLING is removed in close_port() b

[dpdk-dev] [PATCH 19/20] app/testpmd: reset port status on close notification

2020-09-13 Thread Thomas Monjalon
Since rte_eth_dev_release_port() is called on all port close operations, the event RTE_ETH_EVENT_DESTROY can be reliably used for resetting the port status on the application side. The intermediate state RTE_PORT_HANDLING is removed in close_port() because a port can also be closed by a PMD in a d