DPDK patches and discussions
 help / color / mirror / Atom feed
From: <cheng.peng5@zte.com.cn>
To: <jingjing.wu@intel.com>, <wenzhuo.lu@intel.com>
Cc: <dev@dpdk.org>, <cheng.peng5@zte.com.cn>
Subject: [dpdk-dev]  [PATCH] net/iavf: fix return value of stats get function
Date: Tue, 14 Apr 2020 09:56:57 +0800 (CST)
Message-ID: <202004140956577212766@zte.com.cn> (raw)

The iavf_dev_stats_get function should return ret instead of -eio.

Signed-off-by: Peng Cheng <cheng.peng5@zte.com.cn>
 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

             reply	other threads:[~2020-04-14  1:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-14  1:56 cheng.peng5 [this message]
2020-04-22  7:27 ` Ye Xiaolong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202004140956577212766@zte.com.cn \
    --to=cheng.peng5@zte.com.cn \
    --cc=dev@dpdk.org \
    --cc=jingjing.wu@intel.com \
    --cc=wenzhuo.lu@intel.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git