Re: [PATCH net] net/mlx5: Only set num_doorbells on a fully initialized SF

From: Daniel Machon

Date: Wed Oct 28 2026 - 08:22:35 EST


> From: Cosmin Ratiu <cratiu@xxxxxxxxxx>
>
> The validation for the num_doorbells devlink param rejects values
> greater than num_channels. For lightweight SFs, this ends up accessing
> a NULL priv->eq_table, leading to a crash.
>
> Fix that by rejecting setting num_doorbells on uninitialized SFs.
>
> Fixes: 11bbcfb7668c ("net/mlx5e: Use the 'num_doorbells' devlink param")
> Signed-off-by: Cosmin Ratiu <cratiu@xxxxxxxxxx>
> Reviewed-by: Dragos Tatulea <dtatulea@xxxxxxxxxx>
> Signed-off-by: Tariq Toukan <tariqt@xxxxxxxxxx>

Reviewed-by: Daniel Machon <daniel.machon@xxxxxxxxxxxxx>