Re: [PATCH net] octeontx2-af: poll for TX link credits before link mode change
From: Ratheesh Kannoth
Date: Wed Aug 19 2026 - 23:38:43 EST
On 2026-08-18 at 09:06:52, Ratheesh Kannoth (rkannoth@xxxxxxxxxxx) wrote:
> From: Naveen Mamindlapalli <naveenm@xxxxxxxxxxx>
>
> 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 <naveenm@xxxxxxxxxxx>
> Signed-off-by: Ratheesh Kannoth <rkannoth@xxxxxxxxxxx>
Will sashiko address comments in v2
pw-bot: changes-requested