git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
941b494
)
net/iavf: fix stats query error code
author
Cheng Peng
<cheng.peng5@zte.com.cn>
Tue, 14 Apr 2020 01:56:57 +0000
(09:56 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Wed, 22 Apr 2020 10:31:12 +0000
(12:31 +0200)
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 <cheng.peng5@zte.com.cn>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/iavf/iavf_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/iavf/iavf_ethdev.c
b/drivers/net/iavf/iavf_ethdev.c
index
4280a92
..
117fbc5
100644
(file)
--- 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