]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-af: Modify SMQ flush sequence to drop packets
authorNaveen Mamindlapalli <naveenm@marvell.com>
Fri, 6 Sep 2024 04:58:38 +0000 (10:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:37 +0000 (15:10 +0200)
commit8fa29817243886e5a72f73f2442718fef609486f
treeafabecf0264be66ae6d860f2b19e5da903d4eb47
parente216ded408f82524a9e72a5a70b75c4167d98075
octeontx2-af: Modify SMQ flush sequence to drop packets

[ Upstream commit 019aba04f08c2102b35ce7fee9d4628d349f56c0 ]

The current implementation of SMQ flush sequence waits for the packets
in the TM pipeline to be transmitted out of the link. This sequence
doesn't succeed in HW when there is any issue with link such as lack of
link credits, link down or any other traffic that is fully occupying the
link bandwidth (QoS). This patch modifies the SMQ flush sequence to
drop the packets after TL1 level (SQM) instead of polling for the packets
to be sent out of RPM/CGX link.

Fixes: 5d9b976d4480 ("octeontx2-af: Support fixed transmit scheduler topology")
Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.com>
Reviewed-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Link: https://patch.msgid.link/20240906045838.1620308-1-naveenm@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
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