i40e: take into account XDP Tx queues when stopping rings
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Tue, 6 Feb 2024 12:41:32 +0000 (13:41 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 13 Feb 2024 00:58:08 +0000 (16:58 -0800)
commit6ed8187bb36c14f5ea91be0bf20117379df2d25a
tree5d7ab4d9938786904e3ef11341c4abc0c8f442e5
parent89a373e9131d4200038a0ef232dad80212209de0
i40e: take into account XDP Tx queues when stopping rings

Seth reported that on his side XDP traffic can not survive a round of
down/up against i40e interface. Dmesg output was telling us that we were
not able to disable the very first XDP ring. That was due to the fact
that in i40e_vsi_stop_rings() in a pre-work that is done before calling
i40e_vsi_wait_queues_disabled(), XDP Tx queues were not taken into the
account.

To fix this, let us distinguish between Rx and Tx queue boundaries and
take into the account XDP queues for Tx side.

Reported-by: Seth Forshee <sforshee@kernel.org>
Closes: https://lore.kernel.org/netdev/ZbkE7Ep1N1Ou17sA@do-x1extreme/
Fixes: 65662a8dcdd0 ("i40e: Fix logic of disabling queues")
Tested-by: Seth Forshee <sforshee@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Reviewed-by: Ivan Vecera <ivecera@redhat.com>
Tested-by: Chandan Kumar Rout <chandanx.rout@intel.com> (A Contingent Worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c