]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-af: Set XOFF on other child transmit schedulers during SMQ flush
authorNaveen Mamindlapalli <naveenm@marvell.com>
Mon, 12 Jun 2023 06:04:24 +0000 (11:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:36 +0000 (15:10 +0200)
commite216ded408f82524a9e72a5a70b75c4167d98075
tree09560ffe9f005025891f0a1f920aaeaa114ec6e8
parent16ff0895283058b0f96d4fe277aa25ee096f0ea8
octeontx2-af: Set XOFF on other child transmit schedulers during SMQ flush

[ Upstream commit e18aab0470d8f6259be82282ffb3fdcfeaeff6c3 ]

When multiple transmit scheduler queues feed a TL1 transmit link, the
SMQ flush initiated on a low priority queue might get stuck when a high
priority queue fully subscribes the transmit link. This inturn effects
interface teardown. To avoid this, temporarily XOFF all TL1's other
immediate child transmit scheduler queues and also clear any rate limit
configuration on all the scheduler queues in SMQ(flush) hierarchy.

Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 019aba04f08c ("octeontx2-af: Modify SMQ flush sequence to drop packets")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c