On 2026-08-18 at 09:06:52, Ratheesh Kannoth (rkannoth@marvell.com) wrote:
From: Naveen Mamindlapalli <redacted>
When a CGX/RPM link mode change is performed while traffic is flowing,
the link is temporarily disabled. NIX TX link credits can drop below
zero during this window and are not restored when the link comes back,
leading to a TX hang.
Set TL1 SW_XOFF before initiating a link mode change and poll until TX
link credits return to their original value. Clear TL1 SW_XOFF when the
link comes back up.
Fixes: 56b6d5398613 ("octeontx2-af: Physical link configuration support")
Signed-off-by: Naveen Mamindlapalli <redacted>
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Will sashiko address comments in v2
pw-bot: changes-requested