Re: [PATCH net-next] net/mlx4: drop the unused is_supported callback

From: Narcisa Vasile

Date: Wed Nov 04 2026 - 21:21:52 EST


On Tue, Nov 03, 2026 at 12:21:08PM +0000, Peter Morrow wrote:
> Since commit 557d80138618 ("net/mlx4: always create the eth and ib
> auxiliary devices"), both is_supported callbacks return true, so the
> checks in add_drivers() and delete_drivers() no longer decide
> anything. Drop the callbacks and keep the aux device table as an array
> of suffixes.
>
> Tested with this change applied to 6.12.113 on an Azure VM with two
> ConnectX-3 VFs: both auxiliary devices are created at boot, and
> removing mlx4_ib, mlx4_en and mlx4_core deletes them cleanly.
>
> Suggested-by: Simon Horman <horms@xxxxxxxxxx>
> Signed-off-by: Peter Morrow <pdmorrow@xxxxxxxxx>
> ---
> drivers/net/ethernet/mellanox/mlx4/intf.c | 44 ++++-------------------
> 1 file changed, 6 insertions(+), 38 deletions(-)
>

Reviewed-by: Narcisa Vasile <narcisav.kernel@xxxxxxxxx>