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) [thread overview]
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
--
1.8.3.1
next 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 ` [dpdk-dev] [PATCH] net/iavf: fix return value of stats get function 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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* 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 \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.