]> www.infradead.org Git - users/jedix/linux-maple.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)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 Sep 2024 10:16:13 +0000 (12:16 +0200)
commit019aba04f08c2102b35ce7fee9d4628d349f56c0
tree50bce2feb978e224dbe41578a1a97942d01f554f
parent4c8002277167125078e6b9b90137bdf443ebaa08
octeontx2-af: Modify SMQ flush sequence to drop packets

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>
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c