ethdev: change link status get functions to return int
authorIgor Romanov <igor.romanov@oktetlabs.ru>
Tue, 10 Sep 2019 08:25:42 +0000 (09:25 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:54 +0000 (15:00 +0200)
commit4633c3b2ebf2fbbb8b6d4f7e411133a941106044
treebdcf9ab2661e9f2ebc18760abbcc59c24ce5a2d8
parentdb3216e76609647ce8dc256d478c8cc7095a23d4
ethdev: change link status get functions to return int

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

Return value of link_update callback is ignored since the callback
returns not errors but whether link up status has changed or not.

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
doc/guides/sample_app_ug/link_status_intr.rst
drivers/net/bonding/rte_eth_bond_pmd.c
lib/librte_ethdev/rte_ethdev.c
lib/librte_ethdev/rte_ethdev.h