Skip to contentSkip to conversation

net/i40e: fix VF device stop issue

PATCH Applied Beilei Xing 2 participants 2 messages Aug 29, 2017 – Aug 30, 2017 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: fix VF device stop issue

i40e HW date is gotten wrongly in i40evf_dev_stop
function, it may cause device can't be stopped.
This patch is to fix the issue.

Fixes 185993420249 ("net/i40e: fix VF add/del MAC")
---
 drivers/net/i40e/i40e_ethdev_vf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/i40e/i40e_ethdev_vf.c +1 -1
index f6d8293..44fb0db 100644
@@ -2155,7 +2155,7 @@ i40evf_dev_stop(struct rte_eth_dev *dev)
 {
 	struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(dev);
 	struct rte_intr_handle *intr_handle = &pci_dev->intr_handle;
-	struct i40e_hw *hw = I40E_DEV_PRIVATE_TO_HW(dev);
+	struct i40e_hw *hw = I40E_DEV_PRIVATE_TO_HW(dev->data->dev_private);
 
 	PMD_INIT_FUNC_TRACE();
 
Signature · 1 line
2.5.5
Applied
#1 lore raw
Quoted 8 lines · Beilei Xing

i40e HW date is gotten wrongly in i40evf_dev_stop
function, it may cause device can't be stopped.
This patch is to fix the issue.

Fixes 185993420249 ("net/i40e: fix VF add/del MAC")

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