net/mlx5e: Create single netdev per SD group
authorTariq Toukan <tariqt@nvidia.com>
Thu, 15 Feb 2024 03:08:07 +0000 (19:08 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 7 Mar 2024 08:40:39 +0000 (00:40 -0800)
commit381978d28317bc7ee242ed17e4eb11c63094a8b8
tree7d01ad523a5defb399b22ed8837a4d0161d12b36
parent4375130bf527053ef2c1619921af4ceb2cb53172
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 PFs 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 whenever the SD group, with all its participants,
are ready. It is later destroyed whenever any of the participating PFs
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