Re: [PATCH rdma-next v2] RDMA/mlx5: Add missing error flow in mlx5_ib_set_vport_rep

From: Leon Romanovsky

Date: Wed Nov 11 2026 - 09:07:49 EST



On Mon, 09 Nov 2026 14:28:45 +0200, Edward Srouji wrote:
> mlx5_ib_set_vport_rep() attaches the representor netdev to the IB
> device, which takes a netdev reference, and then adds the LAG demux
> rule. If mlx5_lag_demux_rule_add() fails, the error is returned
> without detaching the netdev. The eswitch does not call unload() for a
> representor whose load() failed, so the reference is never dropped and
> a later unregister_netdevice() of the representor waits forever while
> holding the eswitch representors lock.
>
> [...]

Applied, thanks!

[1/1] RDMA/mlx5: Add missing error flow in mlx5_ib_set_vport_rep
https://git.kernel.org/rdma/rdma/c/da0c7b9ba5e91b

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>