net/mlx5e: Create single netdev per SD group
authorTariq Toukan <tariqt@nvidia.com>
Wed, 6 Dec 2023 21:41:50 +0000 (23:41 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 21 Dec 2023 00:54:26 +0000 (16:54 -0800)
commite2578b4f983cfcd47837bbe3bcdbf5920e50b2ad
treebb2827cd6c405c728c94620c5a86f0f1b14e3ac8
parentc82d360325112ccc512fc11a3b68cdcdf04a1478
net/mlx5e: Create single netdev per SD group

Integrate the SD library calls into the auxiliary_driver ops in
preparation for creating a single netdev for the multiple devices
belonging to the same SD group.

SD is still disabled at this stage. It is enabled by a downstream patch
when all needed parts are implemented.

The netdev is created only when the SD group, with all its participants,
are ready. It is later destroyed if any of the participating devices
drops.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c