]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netdevice: add netdev_tx_reset_subqueue() shorthand
authorAlexander Lobakin <aleksander.lobakin@intel.com>
Wed, 4 Sep 2024 15:47:45 +0000 (17:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2025 06:24:05 +0000 (08:24 +0200)
commit370635397b623f5519a3b01c58954b447f16555c
tree29231436c779984729f03c1ba34f2e3cfb7ec24a
parentfa1fe9f3ddb916f22fc0a2678ca0a5fb8750ec70
netdevice: add netdev_tx_reset_subqueue() shorthand

[ Upstream commit 3dc95a3edd0a86b4a59670b3fafcc64c7d83e2e7 ]

Add a shorthand similar to other net*_subqueue() helpers for resetting
the queue by its index w/o obtaining &netdev_tx_queue beforehand
manually.

Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Stable-dep-of: 4db6c75124d8 ("net: ethernet: mtk_eth_soc: reset all TX queues on DMA free")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/netdevice.h