net/ixgbevf: set xstats id values
authorIdo Barnea <ibarnea@cisco.com>
Thu, 9 Mar 2017 16:59:28 +0000 (16:59 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 13:52:52 +0000 (15:52 +0200)
commit09deb982228ce70439976c8d4c2b92b0d0fb4172
treee6ded3d944e98e6197cf7d794224ef73d81d770c
parent2a6c96be134178583b707e68c9297820aaee088b
net/ixgbevf: set xstats id values

Without setting the id, calling xstats_get twice with same array causes
memory corruption.

Also, if IXGBEVF_NB_XSTATS will be different than 1 in the future,
this will cause issues.

Fixes: 156712ba40d3 ("ixgbevf: add extending stats")

Signed-off-by: Ido Barnea <ibarnea@cisco.com>
drivers/net/ixgbe/ixgbe_ethdev.c