ethdev: check more errors in xstats retrieval
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 19 Oct 2017 23:39:52 +0000 (00:39 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commitc063a2a8ad55ba9aefde49fd968af3c77aec42da
treeca7df9b2770ccbd2dc8cd1fb6c06138d8de150d5
parent47ad869546356801b308fe18ac35e8e9874b168a
ethdev: check more errors in xstats retrieval

Some function calls in xstat functions can return negative values
to indicate the error, check return values for those cases.

Coverity issue: 195028, 195026
Fixes: 8c49d5f1c219 ("ethdev: rework xstats retrieve by id")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
lib/librte_ether/rte_ethdev.c