diff options
| author | Maciej Fijalkowski <[email protected]> | 2024-02-20 21:45:52 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2024-03-01 17:38:04 +0000 |
| commit | d562b11c1eac7d73f4c778b4cbe5468f86b1f20d (patch) | |
| tree | eae97ce86422c8c0a7ce81a7d926af0e3db18c34 /drivers/net/ethernet/intel/i40e/i40e_main.c | |
| parent | ixgbe: {dis, en}able irqs in ixgbe_txrx_ring_{dis, en}able (diff) | |
| download | kernel-d562b11c1eac7d73f4c778b4cbe5468f86b1f20d.tar.gz kernel-d562b11c1eac7d73f4c778b4cbe5468f86b1f20d.zip | |
i40e: disable NAPI right after disabling irqs when handling xsk_pool
Disable NAPI before shutting down queues that this particular NAPI
contains so that the order of actions in i40e_queue_pair_disable()
mirrors what we do in i40e_queue_pair_enable().
Fixes: 123cecd427b6 ("i40e: added queue pair disable/enable functions")
Signed-off-by: Maciej Fijalkowski <[email protected]>
Tested-by: Chandan Kumar Rout <[email protected]> (A Contingent Worker at Intel)
Acked-by: Magnus Karlsson <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_main.c')
| -rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index 54eb55464e31..89a3401d20ab 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -13560,9 +13560,9 @@ int i40e_queue_pair_disable(struct i40e_vsi *vsi, int queue_pair) return err; i40e_queue_pair_disable_irq(vsi, queue_pair); + i40e_queue_pair_toggle_napi(vsi, queue_pair, false /* off */); err = i40e_queue_pair_toggle_rings(vsi, queue_pair, false /* off */); i40e_clean_rx_ring(vsi->rx_rings[queue_pair]); - i40e_queue_pair_toggle_napi(vsi, queue_pair, false /* off */); i40e_queue_pair_clean_rings(vsi, queue_pair); i40e_queue_pair_reset_stats(vsi, queue_pair); |
