From patchwork Tue Apr 14 01:56:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cheng.peng5@zte.com.cn X-Patchwork-Id: 68363 X-Patchwork-Delegate: xiaolong.ye@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 23187A0577; Tue, 14 Apr 2020 03:57:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B384F1C01F; Tue, 14 Apr 2020 03:57:02 +0200 (CEST) Received: from mxct.zte.com.cn (out1.zte.com.cn [202.103.147.172]) by dpdk.org (Postfix) with ESMTP id 43D271BF92 for ; Tue, 14 Apr 2020 03:57:00 +0200 (CEST) Received: from mse-fl2.zte.com.cn (unknown [10.30.14.239]) by Forcepoint Email with ESMTPS id 412E47403A4F063D6BB8; Tue, 14 Apr 2020 09:56:59 +0800 (CST) Received: from njxapp02.zte.com.cn ([10.41.132.201]) by mse-fl2.zte.com.cn with SMTP id 03E1uvcN030182; Tue, 14 Apr 2020 09:56:58 +0800 (GMT-8) (envelope-from cheng.peng5@zte.com.cn) Received: from mapi (njxapp02[null]) by mapi (Zmail) with MAPI id mid202; Tue, 14 Apr 2020 09:56:57 +0800 (CST) Date: Tue, 14 Apr 2020 09:56:57 +0800 (CST) X-Zmail-TransId: 2afa5e951869acc9f3d9 X-Mailer: Zmail v1.0 Message-ID: <202004140956577212766@zte.com.cn> Mime-Version: 1.0 From: To: , Cc: , X-MAIL: mse-fl2.zte.com.cn 03E1uvcN030182 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] =?utf-8?q?_=5BPATCH=5D_net/iavf=3A_fix_return_value_of_s?= =?utf-8?q?tats_get_function?= X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The iavf_dev_stats_get function should return ret instead of -eio. Signed-off-by: Peng Cheng Acked-by: Xiaolong Ye --- drivers/net/iavf/iavf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 34913f9..93ab121 100644 --- a/drivers/net/iavf/iavf_ethdev.c +++ b/drivers/net/iavf/iavf_ethdev.c @@ -1074,7 +1074,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