net/netvsc: initialize VF spinlock
authorStephen Hemminger <sthemmin@microsoft.com>
Thu, 6 Jun 2019 16:15:10 +0000 (09:15 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 20 Jun 2019 21:42:04 +0000 (23:42 +0200)
commit5e811a1a39e650aafc931306b0042837baac0450
tree6f96e2d2c7248bee616cc7a2e4bb00ef3dfcf858
parent5f6bd807691e300b2d8c25c209fb778fa6692d61
net/netvsc: initialize VF spinlock

The VF spinlock was never initialized. It works because it is
in zmalloc'd memory and an unlocked lock on x86 is 0.
But for good practice, all spinlock's should be initialized.

Fixes: dc7680e8597c ("net/netvsc: support integrated VF")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
drivers/net/netvsc/hn_ethdev.c