[dpdk-dev] [PATCH 1/2] ethdev: avoid explicit check of valid port state

Ferruh Yigit ferruh.yigit at intel.com
Thu Apr 18 20:37:25 CEST 2019


On 4/17/2019 11:59 PM, Thomas Monjalon wrote:
> Some port iterations are manually checking against RTE_ETH_DEV_UNUSED
> instead of using the iterators based on rte_eth_find_next().
> 
> A new macro RTE_ETH_FOREACH_VALID_DEV() is introduced, but kept private
> because there should be no need of iterating over all devices in the API.
> The public iterators have additional filters for ownership, parent device
> or sibling ports.
> 
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>

Series applied to dpdk-next-net/master, thanks.

(Note for macro added while merging)


More information about the dev mailing list