From: Cheng Peng Date: Tue, 14 Apr 2020 01:56:57 +0000 (+0800) Subject: net/iavf: fix stats query error code X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fdfbfe7085934f3b84c5c8d89f4ab7d7016cb458;p=dpdk.git net/iavf: fix stats query error code The iavf_dev_stats_get function should return ret instead of -eio. Fixes: f4a41a6953af ("net/avf: support stats") Cc: stable@dpdk.org Signed-off-by: Cheng Peng Acked-by: Xiaolong Ye --- diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 4280a92bb1..117fbc5f73 100644 --- a/drivers/net/iavf/iavf_ethdev.c +++ b/drivers/net/iavf/iavf_ethdev.c @@ -1083,7 +1083,7 @@ iavf_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) } else { PMD_DRV_LOG(ERR, "Get statistics failed"); } - return -EIO; + return ret; } static int