Skip to contentSkip to conversation

net/iavf: fix flow uninit issue

dpdk-dev Applied Jeff Guo 2 participants 2 messages May 27, 2020 – May 28, 2020 Network drivers

lore
Share & tools
lore

Jeff Guo

author
#0 lore raw

When closing VF device, the process of shutdown adminq should be after of the process of uninit the flow, since the VF might be still use the adminq to uninit flow.

Fixes 9e03acd726cf ("net/iavf: fix flow access")
Fixes ff2d0c345c3b ("net/iavf: support generic flow API")
---
 drivers/net/iavf/iavf_ethdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/iavf/iavf_ethdev.c +1 -2
index e09efffd1..2b1066b0a 100644
@@ -1432,6 +1432,7 @@ iavf_dev_close(struct rte_eth_dev *dev)
 
 	iavf_dev_stop(dev);
 	iavf_flow_flush(dev, NULL);
+	iavf_flow_uninit(adapter);
 	iavf_shutdown_adminq(hw);
 	/* disable uio intr before callback unregister */
 	rte_intr_disable(intr_handle);
@@ -1440,8 +1441,6 @@ iavf_dev_close(struct rte_eth_dev *dev)
 	rte_intr_callback_unregister(intr_handle,
 				     iavf_dev_interrupt_handler, dev);
 	iavf_disable_irq0(hw);
-
-	iavf_flow_uninit(adapter);
 }
 
 static int
Signature · 1 line
2.20.1
Acked-by Applied
#1 lore raw
Quoted 31 lines · Jeff Guo

When closing VF device, the process of shutdown adminq should be after of the process of uninit the flow, since the VF might be still use the adminq to uninit flow.

Fixes 9e03acd726cf ("net/iavf: fix flow access")
Fixes ff2d0c345c3b ("net/iavf: support generic flow API")

---
drivers/net/iavf/iavf_ethdev.c | 3 +--

1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/iavf/iavf_ethdev.c +1 -2
index e09efffd1..2b1066b0a 100644
@@ -1432,6 +1432,7 @@ iavf_dev_close(struct rte_eth_dev *dev)
 
 	iavf_dev_stop(dev);
 	iavf_flow_flush(dev, NULL);
+	iavf_flow_uninit(adapter);
 	iavf_shutdown_adminq(hw);
 	/* disable uio intr before callback unregister */
 	rte_intr_disable(intr_handle);
@@ -1440,8 +1441,6 @@ iavf_dev_close(struct rte_eth_dev *dev)
 	rte_intr_callback_unregister(intr_handle,
 				     iavf_dev_interrupt_handler, dev);
 	iavf_disable_irq0(hw);
-
-	iavf_flow_uninit(adapter);
 }
 
Quoted 4 lines

static int

Signature · 1 line
2.20.1

Applied to dpdk-next-net-intel, Thanks.