examples/flow_classify: fix validation in port init
authorBernard Iremonger <bernard.iremonger@intel.com>
Mon, 30 Apr 2018 13:43:54 +0000 (14:43 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 30 Apr 2018 13:48:26 +0000 (15:48 +0200)
commit211992f3b7df5d6d8f1dbefc48bc37a6d5398fbc
treed956661579e68d91fe48ba0c332968b3161771b0
parent3eb9af341604fcdfd1cb14d6a7957e0aa88fff02
examples/flow_classify: fix validation in port init

The port_init function calls the rte_eth_dev_is_valid_port function.
This function now returns 1 if the port state is attached.
A return value of 1 now means a valid port.

Fixes: a9dbe1802226 ("fix ethdev port id validation")

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
examples/flow_classify/flow_classify.c