Skip to content
Commit 8bc73967 authored by Naveen Mamindlapalli's avatar Naveen Mamindlapalli Committed by Bo Sun
Browse files

octeontx2-af: Modify SMQ flush sequence to drop packets



commit d4d9688dff51e4102cd6781a67818d03e172cfe4 from
git@git.assembla.com:cavium/WindRiver.linux.git

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 in HW to
drop the packets after TL1 level (SQM) instead of polling for the packets
to be sent out of RPM/CGX link. Also did some cleanup for storing TM
schq's in smq_flush_ctx.

Fixes: 5d9b976d ("octeontx2-af: Support fixed transmit scheduler
                      topology")
Signed-off-by: default avatarNaveen Mamindlapalli <naveenm@marvell.com>
Change-Id: Ic8711177faf5916e3d07c6918e9b94ca055a6f14
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/128898


Reviewed-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Tested-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarBo Sun <Bo.Sun.CN@windriver.com>
parent edd1aec0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment