]> git.ipfire.org Git - thirdparty/linux.git/commit
rtase: Reset TX subqueue when clearing TX ring
authorJustin Lai <justinlai0215@realtek.com>
Tue, 2 Jun 2026 11:46:59 +0000 (19:46 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Jun 2026 15:35:30 +0000 (08:35 -0700)
commitab1ecaabe74b7d86c38ab2ab44bd56cdcc33645a
tree82de85759ada47d11f6500d6c26839cf3c75f224
parent1d31eb27e570daa04f5373345f9ac98c95863be9
rtase: Reset TX subqueue when clearing TX ring

rtase_tx_clear() clears the TX ring and resets the ring indexes.
However, the TX queue state and BQL accounting are not reset at
the same time.

This may leave __QUEUE_STATE_STACK_XOFF asserted after
rtase_sw_reset(), preventing new TX packets from being scheduled.

Reset the TX subqueue when clearing the TX ring so the TX queue
state and BQL accounting are restored together.

Fixes: 5a2a2f15244c ("rtase: Implement the rtase_down function")
Cc: stable@vger.kernel.org
Signed-off-by: Justin Lai <justinlai0215@realtek.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://patch.msgid.link/20260602114659.12335-1-justinlai0215@realtek.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/rtase/rtase_main.c