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:
ebf751d
)
net/atlantic: fix xstats return
author
Igor Russkikh
<igor.russkikh@aquantia.com>
Tue, 12 Mar 2019 15:25:10 +0000
(15:25 +0000)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Wed, 20 Mar 2019 17:15:42 +0000
(18:15 +0100)
Max number of xstats items was returned instead of actual number
of filled in records.
Fixes:
fbe059e87209
("net/atlantic: implement device statistics")
Cc: stable@dpdk.org
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
drivers/net/atlantic/atl_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/atlantic/atl_ethdev.c
b/drivers/net/atlantic/atl_ethdev.c
index
b05dc54
..
5c62d13
100644
(file)
--- a/
drivers/net/atlantic/atl_ethdev.c
+++ b/
drivers/net/atlantic/atl_ethdev.c
@@
-758,7
+758,7
@@
atl_dev_xstats_get_names(struct rte_eth_dev *dev __rte_unused,
snprintf(xstats_names[i].name, RTE_ETH_XSTATS_NAME_SIZE, "%s",
atl_xstats_tbl[i].name);
- return
size
;
+ return
i
;
}
static int
@@
-778,7
+778,7
@@
atl_dev_xstats_get(struct rte_eth_dev *dev, struct rte_eth_xstat *stats,
atl_xstats_tbl[i].offset);
}
- return
n
;
+ return
i
;
}
static int