git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/netvsc: initialize VF spinlock
[dpdk.git]
/
drivers
/
net
/
netvsc
/
hn_ethdev.c
diff --git
a/drivers/net/netvsc/hn_ethdev.c
b/drivers/net/netvsc/hn_ethdev.c
index
9e7cf2d
..
70352f0
100644
(file)
--- a/
drivers/net/netvsc/hn_ethdev.c
+++ b/
drivers/net/netvsc/hn_ethdev.c
@@
-739,6
+739,7
@@
eth_hn_dev_init(struct rte_eth_dev *eth_dev)
hv->port_id = eth_dev->data->port_id;
hv->latency = HN_CHAN_LATENCY_NS;
hv->max_queues = 1;
+ rte_spinlock_init(&hv->vf_lock);
hv->vf_port = HN_INVALID_PORT;
err = hn_parse_args(eth_dev);