ethdev: adjust removal error report
authorMatan Azrad <matan@mellanox.com>
Sat, 20 Jan 2018 21:12:22 +0000 (21:12 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sun, 21 Jan 2018 20:09:42 +0000 (21:09 +0100)
commitbfff4282f98650890e5b353d5e9c82c16b99dc51
treeed600726a3c7756e33ec1d9e9bcabdc0a329a250
parentd3e0f392076497b2c01309ed6724e9f5337f4ad5
ethdev: adjust removal error report

rte_eth_dev_is_removed API was added to detect a device removal
synchronously.

When a device removal occurs during control command execution, many
different errors can be reported to the user.

Adjust all ethdev APIs error reports to return -EIO in case of device
removal using rte_eth_dev_is_removed API.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h