Skip to content

Commit d562b11

Browse files
mfijalkoanguy11
authored andcommitted
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: 123cecd ("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]>
1 parent cbf996f commit d562b11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13560,9 +13560,9 @@ int i40e_queue_pair_disable(struct i40e_vsi *vsi, int queue_pair)
1356013560
return err;
1356113561

1356213562
i40e_queue_pair_disable_irq(vsi, queue_pair);
13563+
i40e_queue_pair_toggle_napi(vsi, queue_pair, false /* off */);
1356313564
err = i40e_queue_pair_toggle_rings(vsi, queue_pair, false /* off */);
1356413565
i40e_clean_rx_ring(vsi->rx_rings[queue_pair]);
13565-
i40e_queue_pair_toggle_napi(vsi, queue_pair, false /* off */);
1356613566
i40e_queue_pair_clean_rings(vsi, queue_pair);
1356713567
i40e_queue_pair_reset_stats(vsi, queue_pair);
1356813568

0 commit comments

Comments
 (0)