Re: [PATCH net] net/mlx5: SF, remove probed SF devices when arming vhca events fails
From: Tariq Toukan
Date: Thu Dec 03 2026 - 02:02:55 EST
On 25/11/2026 10:10, Shay Drori wrote:
pw-bot: cr
On 17/11/2026 5:11, Changyul Lee wrote:
External email: Use caution opening links or attachments
mlx5_sf_dev_table_create() queues work that probes the SFs which are
already active, and then arms the vhca state events. If arming fails,
the arm_err path stops and flushes that work and frees the table, but
the SF devices that the work already added stay on the auxiliary bus
and in table->devices. dev->priv.sf_dev_table is set to NULL, so
mlx5_sf_dev_table_destroy() returns early later and nothing removes
them, while they keep pointing at the parent mlx5_core_dev.
Hi, sorry for the late response...
once an SF is armed, the DPU can activate it and the event handler
probes it, so arm_err has needed this since SF aux devices were added.
Please re-spin with:
Fixes: 90d010b8634b ("net/mlx5: SF, Add auxiliary device support")
and adjust the commit message accordingly. With that:
Reviewed-by: Shay Drory <shayd@xxxxxxxxxx>
P.S.: the race pointed by sashiko is pre-existing and should be handle
in different fix