ethdev: fix error returned for invalid port id
authorLiang-Min Larry Wang <liang-min.wang@intel.com>
Wed, 15 Jul 2015 17:22:40 +0000 (13:22 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 16 Jul 2015 21:56:12 +0000 (23:56 +0200)
commit1ca4d3429cdb0f784055ca58b2d21bba1d54138b
treee61ea69fac1043250b762c9907513dc8f2fdcded
parent056b56cb2193887b32e003d66ff08c5e7a9d0e6c
ethdev: fix error returned for invalid port id

Fix return value, using the macro input instead of -EINVAL.

Fixes: 75acd57ad025 ("ethdev: introduce valid port helper")

Signed-off-by: Liang-Min Larry Wang <liang-min.wang@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_ether/rte_ethdev.c