ethdev: return status of stats read
authorJia Yu <jyu@vmware.com>
Fri, 7 Nov 2014 17:31:51 +0000 (09:31 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 18 Feb 2015 16:50:15 +0000 (17:50 +0100)
commita720aadd4400d90266f9c8bcb63552a7215168e0
treea023d11bde8c274d9a10225f958a67a32e883ed6
parent99610782edaaa88f6c442ff11662780aa161be85
ethdev: return status of stats read

rte_eth_stats_get is to get physical device statistics. Without
return status, caller does not know whether function fails or not
(i.e. invalid port_id, driver has no stats_get callback). Caller
cannot differiente normal 0 stats or error case. This fix adds
a return status to the function.

Signed-off-by: Jia Yu <jyu@vmware.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h