net/netvsc: fix xstats for VF device
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 20 Jun 2019 22:09:24 +0000 (15:09 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:32:18 +0000 (20:32 +0200)
commitcc9271f9e7ee5723677e57f2d49720d3828b51b6
treeb57ce2e36a265491fa8589a1754406be39176d0c
parentb21ad01a82904413485c82a08c154aeacf31fd02
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>
drivers/net/netvsc/hn_ethdev.c
drivers/net/netvsc/hn_var.h
drivers/net/netvsc/hn_vf.c