linux/drivers/net/ethernet/freescale
Wei Fang 9e68817f12 net: enetc: avoid VF->PF mailbox timeout during SR-IOV teardown
During SR-IOV teardown, enetc_msg_psi_free() disables the MR interrupt
before pci_disable_sriov() removes the VFs. If a VF sends a mailbox
message during this window, the PF cannot receive it, causing the VF to
timeout waiting for a reply.

Since the timeout occurs during SR-IOV teardown when the VF is about to
be removed anyway, it has no functional impact on operation. However,
more messages will be added in the future, some visible error logs may
confuse users. So fix it by calling pci_disable_sriov() first to remove
all VFs, then safely clean up the mailbox resources. This eliminates the
race window where VFs could send messages to an unresponsive PF.

Fixes: beb74ac878 ("enetc: Add vf to pf messaging support")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Harshitha Ramamurthy <hramamurthy@google.com>
Link: https://patch.msgid.link/20260520064421.91569-10-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-05-21 08:49:00 -07:00
..
dpaa Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dpaa2 dpaa2: avoid linking objects into multiple modules 2026-04-06 19:03:49 -07:00
enetc net: enetc: avoid VF->PF mailbox timeout during SR-IOV teardown 2026-05-21 08:49:00 -07:00
fman Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
fs_enet Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-02-26 10:23:00 -08:00
fec_main.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
fec_mpc52xx_phy.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
fec_mpc52xx.c net: fec: fix typos found by codespell 2025-06-19 15:27:52 -07:00
fec_mpc52xx.h
fec_ptp.c net: fec: fix the PTP periodic output sysfs interface 2026-03-26 20:10:15 -07:00
fec.h net: fec: add AF_XDP zero-copy support 2026-02-10 10:58:20 +01:00
fsl_pq_mdio.c net: fsl_pq_mdio: Fix device node reference leak in fsl_pq_mdio_probe 2025-10-06 11:22:40 -07:00
gianfar_ethtool.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
gianfar.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
gianfar.h
Kconfig net: fec: make FIXED_PHY dependency unconditional 2026-04-03 14:39:37 -07:00
Makefile dpaa2: compile dpaa2 even CONFIG_FSL_DPAA2_ETH=n 2026-03-14 13:33:03 -07:00
ucc_geth_ethtool.c net: freescale: ucc_geth: phylink conversion 2024-12-06 13:41:53 +00:00
ucc_geth.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-02-26 10:23:00 -08:00
ucc_geth.h net: freescale: ucc_geth: remove unused PHY_INIT_TIMEOUT and PHY_CHANGE_TIME 2025-02-11 16:34:58 -08:00
xgmac_mdio.c