Re: [PATCH net-next] amd-xgbe: add robust link-down TX queue handling

From: Paolo Abeni

Date: Tue Mar 17 2026 - 08:21:13 EST


On 3/13/26 2:46 PM, Raju Rangoju wrote:
> Add comprehensive link-down handling to improve driver robustness and
> enable fast recovery from link failures. Currently, the driver lacks
> proper cleanup mechanisms when the physical link goes down with
> packets in-flight, which can impact network stability and failover
> performance.
>
> This enhancement adds intelligent TX queue management during link state
> transitions:
>
> Link-down detection improvements:
> - Adaptive polling: 100ms intervals when carrier is up for fast
> link-down detection, vs 1000ms when down to conserve CPU
> - Enables ~100-200ms link-down response time (10x improvement)
>
> Smart TX queue handling:
> - Immediate TX queue stop on link-down to halt new submissions
> - Skip futile hardware drain attempts when link is already down
> - Force-cleanup abandoned TX descriptors that hardware won't complete
> - Proper descriptor and skb resource reclamation

It looks like this one should be split in multiple patches, to better
isolate each specific improvements.

/P