summaryrefslogtreecommitdiff
path: root/drivers/net/netvsc/hn_ethdev.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2019-06-20 15:09:24 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2019-06-28 20:32:18 +0200
commitcc9271f9e7ee5723677e57f2d49720d3828b51b6 (patch)
treeb57ce2e36a265491fa8589a1754406be39176d0c /drivers/net/netvsc/hn_ethdev.c
parentb21ad01a82904413485c82a08c154aeacf31fd02 (diff)
downloaddpdk-cc9271f9e7ee5723677e57f2d49720d3828b51b6.zip
dpdk-cc9271f9e7ee5723677e57f2d49720d3828b51b6.tar.gz
dpdk-cc9271f9e7ee5723677e57f2d49720d3828b51b6.tar.xz
net/netvsc: fix xstats for VF device
The id values for VF stats were not being offset correctly. And getting xstats for VF device only worked if VF device supported it; it did not support the generic stats. Fixes: dc7680e8597c ("net/netvsc: support integrated VF") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'drivers/net/netvsc/hn_ethdev.c')
-rw-r--r--drivers/net/netvsc/hn_ethdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c
index 69cf5d1..2a90d67 100644
--- a/drivers/net/netvsc/hn_ethdev.c
+++ b/drivers/net/netvsc/hn_ethdev.c
@@ -763,7 +763,7 @@ hn_dev_xstats_get(struct rte_eth_dev *dev,
}
}
- ret = hn_vf_xstats_get(dev, xstats + count, n - count);
+ ret = hn_vf_xstats_get(dev, xstats, count, n);
if (ret < 0)
return ret;