summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <sthemmin@microsoft.com>2018-11-05 10:51:15 -0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-11-05 20:10:54 +0100
commit7415ad0cdc20b732846d9ae3dabed343781499e3 (patch)
tree8a00fa678f70b4443cf7365f0360982fb1e34269
parentc06aee624d69f91f253fa8e6f0c809c03ef126ce (diff)
downloaddpdk-7415ad0cdc20b732846d9ae3dabed343781499e3.zip
dpdk-7415ad0cdc20b732846d9ae3dabed343781499e3.tar.gz
dpdk-7415ad0cdc20b732846d9ae3dabed343781499e3.tar.xz
net/netvsc: fix VF link update
The netvsc device calls VF (if present) to update the link status with the wrong device. This leads to errors in mlx5 device when it can't find the ifindex. Fixes: dc7680e8597c ("net/netvsc: support integrated VF") Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
-rw-r--r--drivers/net/netvsc/hn_vf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netvsc/hn_vf.c b/drivers/net/netvsc/hn_vf.c
index 7a84ad8..3f714ec 100644
--- a/drivers/net/netvsc/hn_vf.c
+++ b/drivers/net/netvsc/hn_vf.c
@@ -223,7 +223,7 @@ int hn_vf_link_update(struct rte_eth_dev *dev,
rte_spinlock_lock(&hv->vf_lock);
vf_dev = hv->vf_dev;
if (vf_dev && vf_dev->dev_ops->link_update)
- ret = (*vf_dev->dev_ops->link_update)(dev, wait_to_complete);
+ ret = (*vf_dev->dev_ops->link_update)(vf_dev, wait_to_complete);
rte_spinlock_unlock(&hv->vf_lock);
return ret;