From: Beilei Xing Date: Tue, 29 Aug 2017 18:34:33 +0000 (+0800) Subject: net/i40e: fix VF device stop issue X-Git-Tag: spdx-start~2076 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=45ea1d8b2e49fa31718ca401881c1c43b26e0d06;p=dpdk.git net/i40e: fix VF device stop issue i40e HW data 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") Cc: stable@dpdk.org Signed-off-by: Beilei Xing --- diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 05445584f9..b6547c9822 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -1990,7 +1990,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();