[dpdk-dev] [PATCH v3 25/29] app/testpmd: reset port status on close notification

Ferruh Yigit ferruh.yigit at intel.com
Wed Sep 30 14:15:42 CEST 2020


On 9/29/2020 12:14 AM, 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()
> because a port can also be closed by a PMD in a device remove operation.
> 
> In case multiple ports are closed, calling remove_invalid_ports()
> only once is enough.
> 
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
>

Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>



More information about the dev mailing list