Skip to contentSkip to conversation

netvsc: fix vf link update handling

PATCH Applied Stephen Hemminger 2 participants 2 messages Nov 5, 2018 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netvsc: fix vf link update handling

From: Stephen Hemminger <[email protected]>

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")
---
 drivers/net/netvsc/hn_vf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/netvsc/hn_vf.c +1 -1
index 7a84ad8c9b8f..3f714ec99029 100644
@@ -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;
Signature · 1 line
2.19.1
Applied
#1 lore raw
Quoted 8 lines · Stephen Hemminger

From: Stephen Hemminger <[email protected]>

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")

Applied to dpdk-next-net/master, thanks.