octeontx2-pf: Set correct sequence for carrier off and tx queue stop
authorSuman Ghosh <sumang@marvell.com>
Fri, 24 Jul 2026 07:28:31 +0000 (12:58 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 30 Jul 2026 10:55:03 +0000 (12:55 +0200)
commit16809472409d998afcda402e32b8229b389337c4
treeb84a7c89ab7756d7acbba9f2f3f809b2baf757b4
parent732ed8f75ce583d115716f668dc80d730f3ad610
octeontx2-pf: Set correct sequence for carrier off and tx queue stop

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@marvell.com>
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260724072831.2415281-1-rkannoth@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c