From: Stephen Hemminger Date: Mon, 5 Nov 2018 18:51:15 +0000 (-0800) Subject: net/netvsc: fix VF link update X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7415ad0cdc20b732846d9ae3dabed343781499e3;p=dpdk.git 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 --- diff --git a/drivers/net/netvsc/hn_vf.c b/drivers/net/netvsc/hn_vf.c index 7a84ad8c9b..3f714ec990 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;