[dpdk-dev] [PATCH v2 1/4] ethdev: simplify port state comparisons
Andrew Rybchenko
arybchenko at solarflare.com
Sun Feb 24 18:18:21 CET 2019
On 2/21/19 1:10 AM, Thomas Monjalon wrote:
> There are three states for an ethdev port.
> Checking that the port is unused looks simpler than
> checking it is neither attached nor removed.
>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
It is not always equivalent (if/when more states added), but I think
comparison to RTE_ETH_DEV_UNUSED is really better here.
Reviewed-by: Andrew Rybchenko <arybchenko at solarflare.com>
More information about the dev
mailing list