ethdev: change owner delete function to return int
authorIgor Romanov <igor.romanov@oktetlabs.ru>
Tue, 10 Sep 2019 09:02:16 +0000 (10:02 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:55 +0000 (15:00 +0200)
commitfd2d28fcb579330760eeb658521543093eb216fb
tree35cdc2199956684be4cf6cb3511e94b83495c48f
parent70febdcfd60f278be598ec9bcf1ff5bb5c5a59a8
ethdev: change owner delete function to return int

Change rte_eth_dev_owner_delete() return value from void to int
and return negative errno values in case of error conditions.

Right now there is only one error case for rte_eth_dev_owner_delete() -
invalid owner, but it still makes sense to return error to catch bugs
in the code which uses the function.

Also update the usage of the function in drivers/netvsc
according to the new return type.

Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
doc/guides/rel_notes/deprecation.rst
doc/guides/rel_notes/release_19_11.rst
drivers/net/netvsc/hn_ethdev.c
lib/librte_ethdev/rte_ethdev.c
lib/librte_ethdev/rte_ethdev.h