Re: [dpdk-dev] [PATCH v2 1/4] ethdev: simplify port state comparisons

2019-02-24 Thread Andrew Rybchenko
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 It is not always equivalent (if/when more states added), but I think comparison

[dpdk-dev] [PATCH v2 1/4] ethdev: simplify port state comparisons

2019-02-20 Thread Thomas Monjalon
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 --- lib/librte_ethdev/rte_ethdev.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/librte_ethde