Re: [PATCH net] octeontx2-pf: Set correct sequence for carrier off and tx queue stop

From: Simon Horman

Date: Tue Jul 28 2026 - 14:17:11 EST


On Fri, Jul 24, 2026 at 12:58:31PM +0530, Ratheesh Kannoth wrote:
> From: Suman Ghosh <sumang@xxxxxxxxxxx>
>
> During link down event, we were doing netif_tx_stop_all_queues() first
> and then netif_carrier_off(). This can cause a potential race since
> carrier is still on during down event. This patch reverse the calling
> order to fix the issue.
>
> Fixes: 50fe6c02e5ad ("octeontx2-pf: Register and handle link notifications")
> Signed-off-by: Suman Ghosh <sumang@xxxxxxxxxxx>
> Signed-off-by: Ratheesh Kannoth <rkannoth@xxxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>