iavf: in iavf_down, disable queues when removing the driver
Subsystems (3)
PATCH 1/1 iavf: in iavf_down, disable queues when removing the driver
From: Michal Schmidt <[email protected]>
In iavf_down, we're skipping the scheduling of certain operations if the driver is being removed. However, the IAVF_FLAG_AQ_DISABLE_QUEUES request must not be skipped in this case, because iavf_close waits for the transition to the __IAVF_DOWN state, which happens in iavf_virtchnl_completion after the queues are released.
Without this fix, "rmmod iavf" takes half a second per interface that's up and prints the "Device resources not yet released" warning.
--- drivers/net/ethernet/intel/iavf/iavf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/iavf/iavf_main.c +1 -1
@@ -1437,9 +1437,9 @@ void iavf_down(struct iavf_adapter *adapter) adapter->aq_required |=IAVF_FLAG_AQ_DEL_FDIR_FILTER ;if (!list_empty (&adapter->adv_rss_list_head)) adapter->aq_required |=IAVF_FLAG_AQ_DEL_ADV_RSS_CFG ; - adapter->aq_required |=IAVF_FLAG_AQ_DISABLE_QUEUES ; } + adapter->aq_required |=IAVF_FLAG_AQ_DISABLE_QUEUES ;mod_delayed_work (adapter->wq, &adapter->watchdog_task,0 ); }
base-commit: 1711435e3e67e079d6a2bce54d96d1af21c7ef2c
Signature · 1 line
2.41.0
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Wed, 25 Oct 2023 11:32:13 -0700 you wrote:
From: Michal Schmidt <[email protected]>
In
iavf_down, we're skipping the scheduling of certain operations if the driver is being removed. However, theIAVF_FLAG_AQ_DISABLE_QUEUESrequest must not be skipped in this case, becauseiavf_closewaits for the transition to the__IAVF_DOWNstate, which happens iniavf_virtchnl_completionafter the queues are released.[...]
Here is the summary with links:
- [net] iavf: in iavf_down, disable queues when removing the driver
https://git.kernel.org/netdev/net/c/53798666648a
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html