ethdev: unify error code if port ID is invalid
authorAndrew Rybchenko <arybchenko@solarflare.com>
Tue, 13 Oct 2020 14:53:38 +0000 (15:53 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 23:14:50 +0000 (01:14 +0200)
commitf6c763fbed95f6d1074cd1c13d8ea98a67fd20a9
tree11aa26e30ad6c315cbe99839545c822d2aaa4766
parenta72cb3e7656a89e0d56c1c2bd0fe7f68f56e2699
ethdev: unify error code if port ID is invalid

Use ENODEV as the error code if specified port ID is invalid.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test/test_bitratestats.c
lib/librte_ethdev/rte_ethdev.c
lib/librte_ethdev/rte_ethdev.h